24-03-2026, 07:10 AM
(This post was last modified: 24-03-2026, 07:16 AM by josemendez.)
(23-03-2026, 08:06 PM)Bopter Wrote: When I need it again I reenable it by waiting until the rope is loaded then manually adjust the positions, prevPositions, and Velocities of all particles. Then I wait one frame to let things settle before reenabling the Renderer.
Hi!
Physics in Unity are updated in FixedUpdate(). This is often called less frequently than Update(), so simply waiting for the next frame using yield return null is incorrect: you must use yield return new WaitForFixedUpdate(), then wait for the next frame so that rendering is updated.
Otherwise the rope will appear in the pose it had during the last FixedUpdate() call before disabling it since no calls to FixedUpdate may take place during the frame where you enable it, so neither simulation or the shape of the rope will be updated.
kind regards

