planck.js icon indicating copy to clipboard operation
planck.js copied to clipboard

Save/Load everything

Open chavlji opened this issue 7 years ago • 1 comments

Hi, First thanks for this tremendous work! Awsome. I've tried Matter js, but I like physics in this one far better.

Anyway, I don't know if this is the place to ask (please point me somewere if it isn't), but is it possible to pause simulation, and save everything (bodies, forces, broadband, collision pairs,...). I would then continue simulation but in anytime I could "roll-back" everything to exact state as it was in moment of saving?

Thank you very much in advance!

chavlji avatar Feb 03 '18 15:02 chavlji

Currently there is nothing in the library for that, so probably closest thing to do is storing important data such as positions, velocities, etc. and use them to recreated the world.

shakiba avatar Feb 04 '18 01:02 shakiba

Very likely will implement this in v2. There is a duplicate issues however (#36), so I close this one.

shakiba avatar Aug 30 '23 02:08 shakiba