Function setPhysicsTimestepMs
-
Parameters
- world: PhysicsWorld
The physics world.
- fixedDeltaMs: number
Fixed step in milliseconds (e.g.
1000 / 60), or0to use the frame delta.
Returns void
- world: PhysicsWorld
The physics world.
Fixed step in milliseconds (e.g. 1000 / 60), or 0 to use the frame delta.
Sets the fixed simulation timestep used by each world step, in milliseconds (matching SceneContext.fixedDeltaMs). Pass
0to make the world step at the real per-frame delta instead of a fixed step. See setPhysicsTimestep for the seconds-based equivalent.