RuleTested
Run web physics on a fixed timestep
Keep simulation results stable across fast displays, slow frames, and recording tools.
Ready to use
Rule text
Advance the physics world with a fixed timestep, accumulate elapsed render time, and cap the number of catch-up steps. Interpolate visual transforms when the renderer needs smoother motion.Why it helps
The reasoning behind the entry
Variable timesteps make collision response and joint behavior depend on frame rate.
Filed under
Use it in more than one place
- Ecosystem
- Three.jsBabylon.jsPlayCanvas
- Platform
- Web