Closed huy-ha closed 3 years ago
To give some background, I need a good way to reset a cloth after some interaction with it. I've tried saveState() and loadState() but it doesn't look like the state of deformables are saved in these states. resetBasePositionAndOrientation() also doesn't do the trick.
Thanks for the report, we need to fix it.
indeed, cloth is an experimental new feature, most of the APIs only apply to rigid/multibodies.
Thanks Erwin!
Issue: When soft bodies are imported, deleted, and reimported, a segmentation fault occurs.
Setup:
To reproduce:
where
assets/cloth.obj
is just a subdivided plane mesh. Usually, the segfault occurs within less than 5 iterations whether or not the cloth is interacted with by applying a force with the mouse in the GUI.I've found that that changing the parameters to
p.loadSoftBody()
will cause the segfault to happen a different iteration, but it always occurs.If I don't remove the cloth, then the segfault doesn't seem to happen.