Documentation / scene / CapsuleCreationOptions
Interface: CapsuleCreationOptions
Defined in: libs/scene/src/shapes/capsule.ts:9
Creation options for capsule shape
Extends
Properties
radius?
optionalradius?:number
Defined in: libs/scene/src/shapes/capsule.ts:11
Radius of the capsule hemispheres, default is 1
height?
optionalheight?:number
Defined in: libs/scene/src/shapes/capsule.ts:13
Height of the cylindrical body between the two hemispheres, default is 1
radialDetail?
optionalradialDetail?:number
Defined in: libs/scene/src/shapes/capsule.ts:15
Radial detail, default is 20
hemisphereDetail?
optionalhemisphereDetail?:number
Defined in: libs/scene/src/shapes/capsule.ts:17
Vertical detail for each hemisphere, default is 10
heightDetail?
optionalheightDetail?:number
Defined in: libs/scene/src/shapes/capsule.ts:19
Vertical detail of the cylindrical body, default is 1
anchor?
optionalanchor?: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?
optionalneedNormal?: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?
optionalneedTangent?: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?
optionalneedUV?:boolean
Defined in: libs/scene/src/shapes/shape.ts:16
true if we need to calculate texture coordinates for the shape
Inherited from
transform?
optionaltransform?:Matrix4x4
Defined in: libs/scene/src/shapes/shape.ts:18
Transform matrix for the shape