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
Name | Type | Description |
---|---|---|
stepOffset | Float | Step offset. If the height of a step is greater than stepOffset, the controller cannot climb automatically and gets stuck. |
slopeLimit | Float | Slope limit in degrees. A slope steeper than the slopeLimit will not be walkable by the controller. |
skinWidth | Float | The character's collision skin width. |
displacement | Vec3 | Displacement vector for current frame. |