I first want to thank you for your great work, as nphysics can be really useful for a project I’m working on.
I’m still evaluating if the library can be a good fit for what I need, but one feature I cannot find is the possibility to create snapshots or checkpoints in a simulation that allow to revert to this point, make some changes, and restart the simulation from there.
For my use case I want define a sequence of events (for example, impulses on objects) that interact with the simulation, I run the simulation, and save the result as an animation. The problem is that I need to be able to edit the events interactively and that requires to re-run the whole simulation from scratch, instead of starting from the last event that didn’t change.
I’m also concerned with the memory footprint of the snapshots, and ideally should be able to be based on previous snapshot and only store the changes.
Is this possible right now with nphysics? Can I get and set the different pieces of state in a World manually and implement the snapshot system myself, or is the internal state something not covered by the public API?
Thanks in advance.