mirror of https://github.com/bjornbytes/lovr.git
24a0751c16
Physics world's "quick step" is executed in multiple iteration steps. The getter and setter for this value is now made available as two new methods in the World object. This is allows user to balance between the less accurate but quick simulations, and more stable behavior of physics. Something similar was already possible, by reducing the delta time and running the sim multiple times per frame. However, any force user applies to collider is zeroed after each step. User would thus have to keep track of applied forces, and re-apply them inside the physics iteration loop. By default ODE uses 20 iterations in quick step. |
||
---|---|---|
.. | ||
physics.c | ||
physics.h |