[ODE] Using ODE in a game

Martin C. Martin martin at metahuman.org
Fri Aug 15 10:56:01 2003


"Martin C. Martin" wrote:
> 
> > So the engine needs to copy (save/restore) ODE states.
> > How can this be done efficiently?
> 
> Just save & restore the position and quaternion for all bodies.

As soon as I sent this, I realized you need to save & restore velocities
as well.  There's an entire list on the ODE FAQ, under "resetting a
simulation."  Most of the stuff in that list doesn't change though.

By the way, you'll also have to worry about objects that were
created/deleted between "now" and the time you're rolling back to.

- Martin