Interface: ICapsuleShapeData

查看 llm.txt

最后一次编辑于 2026-10-22

see CapsuleShape

Hierarchy

Table of contents

Properties

Properties

autoFit

• Optional autoFit: boolean

轮廓是否自动贴合Mesh组件或GLTF组件的大小。 如果当前元素下不存在Mesh组件和GLTF组件则不生效。

MeshShape永远会开启这项。

default false

Inherited from

IShapeData.autoFit


center

• Optional center: [number, number, number]

轮廓中心相对元素Transform中心的偏移量。

default [0, 0, 0]

Inherited from

IShapeData.center


direction

• Optional direction: ECapsuleShapeDirection

胶囊体的朝向。

default ECapsuleShapeDirection["Y-Axis"]


disabled

• Optional disabled: boolean

是否禁用shape。

default false

Inherited from

IShapeData.disabled


height

• Optional height: number

胶囊体的长度。

default 2


radius

• Optional radius: number

胶囊体两端球体的半径。

default 0.5