Skip to content

Documentation / scene / CapsuleCreationOptions

Interface: CapsuleCreationOptions ​

Defined in: libs/scene/src/shapes/capsule.ts:9

Creation options for capsule shape

Extends ​

Properties ​

radius? ​

optional radius?: number

Defined in: libs/scene/src/shapes/capsule.ts:11

Radius of the capsule hemispheres, default is 1


height? ​

optional height?: number

Defined in: libs/scene/src/shapes/capsule.ts:13

Height of the cylindrical body between the two hemispheres, default is 1


radialDetail? ​

optional radialDetail?: number

Defined in: libs/scene/src/shapes/capsule.ts:15

Radial detail, default is 20


hemisphereDetail? ​

optional hemisphereDetail?: number

Defined in: libs/scene/src/shapes/capsule.ts:17

Vertical detail for each hemisphere, default is 10


heightDetail? ​

optional heightDetail?: number

Defined in: libs/scene/src/shapes/capsule.ts:19

Vertical detail of the cylindrical body, default is 1


anchor? ​

optional anchor?: number

Defined in: libs/scene/src/shapes/capsule.ts:24

Anchor point along the capsule total height, default is 0.5. 0 puts the bottom tip at y=0, 0.5 centers the capsule at origin.


needNormal? ​

optional needNormal?: boolean

Defined in: libs/scene/src/shapes/shape.ts:12

true if we need to calculate normals for the shape

Inherited from ​

ShapeCreationOptions.needNormal


needTangent? ​

optional needTangent?: boolean

Defined in: libs/scene/src/shapes/shape.ts:14

true if we need to calculate tangents for the shape

Inherited from ​

ShapeCreationOptions.needTangent


needUV? ​

optional needUV?: boolean

Defined in: libs/scene/src/shapes/shape.ts:16

true if we need to calculate texture coordinates for the shape

Inherited from ​

ShapeCreationOptions.needUV


transform? ​

optional transform?: Matrix4x4

Defined in: libs/scene/src/shapes/shape.ts:18

Transform matrix for the shape

Inherited from ​

ShapeCreationOptions.transform

Released under the MIT License.