Type Alias: 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.
Properties
stepOffset
stepOffset: Float;
Defined in: node_modules/@3dverse/livelink.core/dist/_prebuild/engine_types/components.d.ts:164
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;
Defined in: node_modules/@3dverse/livelink.core/dist/_prebuild/engine_types/components.d.ts:169
Slope limit in degrees. A slope steeper than the slopeLimit will not be walkable by the controller.
Default Value
45;
skinWidth
skinWidth: Float;
Defined in: node_modules/@3dverse/livelink.core/dist/_prebuild/engine_types/components.d.ts:174
The character's collision skin width.
Default Value
0;
displacement
displacement: Vec3;
Defined in: node_modules/@3dverse/livelink.core/dist/_prebuild/engine_types/components.d.ts:179
Displacement vector for current frame.
Default Value
(0, 0, 0);