Skip to main content

Module physics_step

Module physics_step 

Expand description

3D Physics & XPBD Capsule Sweep Coupling (physics_step.rs).

Couples CharacterController with 3D physics narrowphase/broadphase:

  • Iterative slide-and-collide capsule sweeps against BroadphaseBvh and ColliderShape3D,
  • Stair auto-stepping up to configured max_step_height,
  • Ceiling downward velocity clamping on upward head impacts,
  • Moving platform velocity inheritance from contacted kinematic/dynamic bodies.

Functionsยง

step_character_3d
Convenience wrapper for CharacterController::step_character_3d.