Module character

Source
Expand description

Kinematic upright capsules and planar boxes, shared by games and prediction. Positive Y is up. Positions are feet/sole centers. Move terrain first, then motors.

Structs§

Character
CharacterInput
CharacterSettings
CharacterStep
JumpState
Motion
Obstacle
QueryBounds
Support

Enums§

CharacterError
CharacterShape
ObstacleShape

Traits§

Terrain
The visitor receives current poses. Implementations may use their broadphase; they must visit every obstacle intersecting bounds, in deterministic order. Character queries allocate no scratch buffers. Sensors/layers are filtered by the motor.

Functions§

move_and_slide
Sweep/slide without applying acceleration, gravity or jump state. Displacement may be long; no destination-only collision tests or discrete movement substeps. A bounded starting-overlap recovery is attempted; errors leave caller state intact.