createPhysicsWorld
createPhysicsWorld(
surface):PhysicsHandle
Defined in: packages/engine/src/gameplay/physics/world.ts:28
A Rapier world with the ground as one heightfield and a wall along each
of its edges. The world’s gravity pulls on dynamic bodies alone: an
actor’s is the walk’s, and a kinematic or fixed body feels none. It starts at the settings constant, and
moveActorsThroughPhysics writes the game’s own Gravity over it.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
surface |
GroundSurface |