Stardust project homepage
Click anywhere in the demo to explode particles, and click the "Restore Image" button to see the magic of snapshot restoration!
I mentioned this "snapshot" restoration stuff on my previous blog post.
This feature is now complete. You can grab it from the SVN repository.
The logics behind are pretty simple: the Snapshot class stores particle states (i.e. "snapshots") using an internal VO (value object) class, SnapshotData, and the SnapshotRestore class simply uses the easing equations to tween particles back to the previous taken snapshots.
I've also provided a ParticleRestoreFlag class for you to specify whether you want to restore the positions, rotations, scales, or more than one of these properties of the particles.