[ODE] rewind?

Jaap Stolk jwstolk at gmail.com
Sun Apr 16 23:06:46 MST 2006


On 4/17/06, Lukas Irwin <luke at energenesis.com> wrote:
> How do you rewind the simulation?

ODE does not store the complete simulation, only the current
situation. You will have to store the current situation after every
step (or every N steps) while simulating. It then should be possible
to go back to one of the saved points.

If you want to scroll back and forward through the simulation results,
then you only need to save to positions and rotations of the geoms
(visible objects).

If you want to change some aspect and then continue simulation, then
you need to store all data used by ODE, like the velocity and angular
velocity of all bodies etc.

Maybe it would be useful to add a "save_state" and "restore_state"
function to ODE ?

Jaap.



More information about the ODE mailing list