Skip to content

registerCharacterController2DSystem

registerCharacterController2DSystem(app): void

Defined in: physics/CharacterController2D.ts:310

Register the character-controller system. Runs in FixedUpdate ahead of the physics step so the resolved Transform is what gets pushed into a kinematic body. Movement is delegated to Box2D’s native kinematic mover (collide-into-planes + depenetrating slide), which — unlike a generic shape cast — resolves a character resting on the ground with valid contact normals instead of wedging on it.

App

void