17-10-2023, 06:28 AM
(17-10-2023, 05:33 AM)vrtraining Wrote: Now we are trying a full reset of the setup that includes resetting the rope lengths and the positions of their static and dynamic attachments particle points. When we try to reset the rope length instead of instantly going to initial length, it simulates the full physics of rope dragging the hook along with it. How we can disable physics and reset the whole length and setup back to its initial position.
Hi,
You can remove the rope from the solver, clear its state, then add it back:
Code:
rope.RemoveFromSolver();
rope.ClearState();
rope.AddToSolver();
This will reset the rope to the state defined by its blueprint.
kind regards,