[ODE] ODE - Constant speed in different qualities boxes

Megan Fox shalinor at circustent.us
Tue Mar 16 10:54:51 MST 2004


#define ODE_STEP_SIZE 0.01

timeAccumulator += deltaTime; // deltaTime is the time between the previous frame and this one

while (timeAccumulator > ODE_STEP_SIZE)
{
  StepFast(ODE_STEP_SIZE);
  timeAccumulator -= ODE_STEP_SIZE;
}


^^^ I thought this is the way everyone did it?  You don't want large step sizes, and you can't guarantee the length of time between frames.

-Megan Fox

> I was under the impression that variable timestep == VERY BAD 
> THING, in ODE;
> is this incorrect?
> 
> Adam
> _______________________________________________
> ODE mailing list
> ODE at q12.org
> http://q12.org/mailman/listinfo/ode
> 
> 




More information about the ODE mailing list