[ODE] Creating a simulation with ODE

Jon Watte hplus-ode at mindcontrol.org
Tue Jun 29 10:16:03 MST 2004


> Where should I look in the ODE source code to "lock" the timestep to a  
> certain value regardless of the time past in real time.

You don't need to "lock" anything. Just pass a fixed value into 
the dWorldStep() function (or StepFast, or whatever function 
you're using). If you want your time step to always be 24 fps, 
then pass 1.0/24 as the elapsed time value.

Simulations are generally much more stable when you use a fixed 
time step, too, by the way.

Cheers,

			/ h+




More information about the ODE mailing list