Skip to main content

CharacterController

type CharacterController = {
stepOffset: Float;
slopeLimit: Float;
skinWidth: Float;
displacement: Vec3;
};

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

Character controller used for movement constrained by collisions without having to deal with a rigid body. A character controller is kinematic, and so is not affected by forces. It uses its own tweaked collision algorithm to give a good feeling while controlling the character.

Type declaration

NameTypeDescription
stepOffsetFloatStep offset. If the height of a step is greater than stepOffset, the controller cannot climb automatically and gets stuck.
slopeLimitFloatSlope limit in degrees. A slope steeper than the slopeLimit will not be walkable by the controller.
skinWidthFloatThe character's collision skin width.
displacementVec3Displacement vector for current frame.