Character Controller

character_controller

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.

Dependencies

Attributes

AttributeTypeDefaultDescription
stepOffsetfloat0Step offset. If the height of a step is greater than stepOffset, the controller cannot climb automatically and gets stuck.
slopeLimitfloat45Slope limit in degrees. A slope steeper than the slopeLimit will not be walkable by the controller.
skinWidthfloat0The character's collision skin width.
displacementvec3[ 0, 0, 0 ]Displacement vector for current frame.