[ODE] game loop and ODE loop out-of-sync

Pancini, Ettore epancini at ferrari.it
Tue Mar 29 17:49:54 MST 2005


check this papers from Glenn Fiedler at http://www.gaffer.org/articles/
in 'Fix Your Timestep!', the last part is what you need, i think.

hth
 

> -----Original Message-----
> From: ode-bounces at q12.org [mailto:ode-bounces at q12.org] On 
> Behalf Of Achim Moller
> Sent: martedì 29 marzo 2005 16:43
> To: ode at q12.org
> Subject: [ODE] game loop and ODE loop out-of-sync
> 
> Hi,
> 
> there was a lot of information discussed on the mailing list 
> about the general timing of the game loop and how to include 
> the call to ODE inside this loop to keep a fixed time step.
> 
> But what happens if the actual game loop needs to deal with a 
> variable delta time, but ODE is stepped in this fixed 
> interval segments?
> 
> In other words, using the recommended fixed-time stepping for 
> ODE evaluates the object positions at a fixed sample rate in 
> time. But if the actual game delta time is really variable, 
> the game needs object positions 'between' the sampeled ODE 
> integration steps, right? Some sort of interpolation is needed!
> Does anyone have done this? Any suggestions?
> 
> Thanks.
> Achim
> _______________________________________________
> ODE mailing list
> ODE at q12.org
> http://q12.org/mailman/listinfo/ode
> 



More information about the ODE mailing list