InteractiveComputerGraphics / PositionBasedDynamics

PositionBasedDynamics is a library for the physically-based simulation of rigid bodies, deformable solids and fluids.
MIT License
1.89k stars 358 forks source link

Save state of simulation #88

Closed kayarre closed 2 years ago

kayarre commented 4 years ago

I am running the Pile scene with a different configuration. Is it possible to save the locations of objects once they come to rest?

I would assume I could just add some kind of save feature that exports the centroid of the sdf for each object?

Where would be a good place to add that feature?

janbender commented 4 years ago

Do you want to save the SDF or the geometry? For the geometry you could copy the OBJ exporter from our SPlisHSPlasH repo.

kayarre commented 4 years ago

I think the obj file at its last location. I will look at the OBJ exporter. Thank you so much.