[ODE] Creating a simulation with ODE
Tom De Muer
tom.demuer at skynet.be
Tue Jun 29 10:56:54 MST 2004
> On Wed, 09 Jun 2004 14:39:57 +0300, Tatu Lahtela <lahtela at cs.tut.fi>
wrote:
>
> > Hi!
> >
> > I need to do some heavy calculations with my program so
> > I've given up hope to get it work real time. So I'm only
> > trying to create a simulation that uses ODE for force calculations etc.
> > So do I just try to set the dWorldStep value to some very small value
> > or is there a better way?
> >
> > My goal is to simulate ~3 seconds, 24 frames per second "in real
> > life" when my non ODE related code takes about 10 seconds to calculate.
> >
>
> Anyone?
>
> 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.
Just use the timestep you think is appropriate and don't link it to the time
passed in real life (wall time) and wait... ODE has it's own notion of time
independent of what happens in "real time". It would be mere coincidence
that the timestep you provide to WorldStep() would be equal to the time it
takes to actually perform the computation.
Cheers!
Tom
>
> --
> Tampere University of Technology / Automation and Control Institute
> Tatu Lahtela
> _______________________________________________
> ODE mailing list
> ODE at q12.org
> http://q12.org/mailman/listinfo/ode
>
More information about the ODE
mailing list