Skip to main content

CapsuleGeometry

type CapsuleGeometry = {
radius: Float;
height: Float;
axis: Int32;
offset: Vec3;
};

Defined in: node_modules/@3dverse/livelink.core/dist/_prebuild/engine_types/components.d.ts:134

Capsule geometry.

Type declaration

NameTypeDescription
radiusFloatRadius of the spheres at each end of the capsule.
heightFloatHeight of the cylindrical part of the capsule.
axisInt32Alignment axis. 0 for X, 1 for Y, 2 for Z.
offsetVec3Geometry offset.