RuleSource Checked
Give Box2D sensible world units
Model ordinary objects in meter-like units instead of sending pixel coordinates directly into physics.
Ready to use
Rule text
Choose a stable pixels-to-world scale and keep typical moving objects near ordinary meter-like sizes. Convert only at the render boundary instead of mixing pixels and world units throughout the simulation.Why it helps
The reasoning behind the entry
Extreme coordinate scales reduce numerical stability and make tuning harder to reason about.
Filed under