23-11-2020, 03:44 PM
Hi,
so I have a Softbody actor that I want to reset completely to it's initial state.
Currently I'm caching the particle position, orientation, velocity and angular velocity and applying these values on reset.
This mostly works. However, the permanent softbody deformation is not reset, so it stays squished.
Can I cache the initial deformation (no deformation at all) as well or is there another approach I have to take?
I'd rather not instantiate a new actor, I would prefer to reset the existing one if possible.
so I have a Softbody actor that I want to reset completely to it's initial state.
Currently I'm caching the particle position, orientation, velocity and angular velocity and applying these values on reset.
This mostly works. However, the permanent softbody deformation is not reset, so it stays squished.
Can I cache the initial deformation (no deformation at all) as well or is there another approach I have to take?
I'd rather not instantiate a new actor, I would prefer to reset the existing one if possible.