Skip to content

syncColliderBodies

syncColliderBodies(world, handle): void

Defined in: packages/engine/src/gameplay/physics/colliders.ts:87

Gives every entity with a collider its body the first step it is seen, standing where the entity stands, drops the body of one that died, and moves a kinematic body to wherever the step’s other systems put its transform. A dynamic body gets a facing, because it turns as it rolls.

Parameter Type
world World
handle PhysicsHandle

void