Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Rope Jitters Connected to moving Gameobject with Handle
#1
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.
Reply
#2
(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
Reply