[ODE] dWorldStep(STEPSIZE)
Aras Pranckevicius
nearaz at interamotion.com
Wed May 12 12:33:21 MST 2004
> what is the meaning of the variable STEPSIZE in
> "void dWorldStep (dWorldID, dReal stepsize);"
> Is it the elapsed time in milliseconds since the last world update?
It's the step size you want your simulation to advance - nothing more
and nothing less (and it's measured in the time units you're using -
which may be seconds or may be not).
> If yes, should I find out the exact time the thread spent on my
> computer and pass it as stepsize in order to synchronise the
simulation with
> realtime?
If your simulation should look realtime to someone who is sitting at the
computer - then step size should be the amount of time elapsed from the
last update (not only in this thread).
You may also try running at fixed stepsize (saves a lot of headache in
some situations), and adjusting your rendering accordingly.
Aras Pranckevicius aka NeARAZ
http://www.gim.ktu.lt/nesnausk/nearaz/
More information about the ODE
mailing list