Obi Official Forum

Full Version: Rope Jitters Connected to moving Gameobject with Handle
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have a rope that is connected to a GameObject with Handles, this GameObject moves with the camera motion, When moved the rope will separate from the GameObject and return to it after the motion has stopped.
(05-03-2020, 04:38 PM)putput82nd Wrote: [ -> ]I have a rope that is connected to a GameObject with Handles, this GameObject moves with the camera motion, When moved the rope will separate from the GameObject and return to it after the motion has stopped.

When are you moving the camera during Unity's update cycle? Keep in mind that FixedUpdate (which is where physics are updated) happens before Update and LateUpdate, so if you move the camera in Update or LateUpdate, you introduce a 1-frame delay.

Everything physics-related in some way must be updated in FixedUpdate. See:
https://docs.unity3d.com/Manual/ExecutionOrder.html