Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Reset Rope Length without Physics
#2
(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,
Reply


Messages In This Thread
Reset Rope Length without Physics - by vrtraining - 17-10-2023, 05:33 AM
RE: Reset Rope Length without Physics - by josemendez - 17-10-2023, 06:28 AM