Skip to main content

CharacterController

@3dverse/livelink v0.8.10


@3dverse/livelink / Components / CharacterController

Type Alias: CharacterController

CharacterController: object

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

stepOffset

stepOffset: Float

Step offset. If the height of a step is greater than stepOffset, the controller cannot climb automatically and gets stuck.

Default Value

0;

slopeLimit

slopeLimit: Float

Slope limit in degrees. A slope steeper than the slopeLimit will not be walkable by the controller.

Default Value

45;

skinWidth

skinWidth: Float

The character's collision skin width.

Default Value

0;

displacement

displacement: Vec3

Displacement vector for current frame.

Default Value

0, 0, 0;