Obi Official Forum
Help Rope Jitters Connected to moving Gameobject with Handle - Printable Version

+- Obi Official Forum (https://obi.virtualmethodstudio.com/forum)
+-- Forum: Obi Users Category (https://obi.virtualmethodstudio.com/forum/forum-1.html)
+--- Forum: Obi Rope (https://obi.virtualmethodstudio.com/forum/forum-4.html)
+--- Thread: Help Rope Jitters Connected to moving Gameobject with Handle (/thread-2085.html)



Rope Jitters Connected to moving Gameobject with Handle - putput82nd - 05-03-2020

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.


RE: Rope Jitters Connected to moving Gameobject with Handle - josemendez - 09-03-2020

(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