Yesterday, 07:21 AM
(This post was last modified: Yesterday, 07:25 AM by vrtraining.)
I need to reset the rope to its initial position. My rope is attached to and object and I have moved that object. Now when I reset my object back the rope swings all the way back due to solver and physics. I just want to reset the rope as I reset my attached object. I'm currently using the solution I got from this forum
This solution was working well in Obi 6 but in Obi 7 its starting to add swing. How I can reset it back to blueprint one without any physics. I just want the rope with its length and particles to reset to its original starting position without any animation or swing along the way. How I can do that?
Code:
rope.RemoveFromSolver();
rope.ClearState();
rope.AddToSolver();
while (!rope.isLoaded) yield return new WaitForEndOfFrame();
ropeCursor.ChangeLength(initialLength - rope.restLength);
This solution was working well in Obi 6 but in Obi 7 its starting to add swing. How I can reset it back to blueprint one without any physics. I just want the rope with its length and particles to reset to its original starting position without any animation or swing along the way. How I can do that?