Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem about the joint of two objects
#2
Hi!

This behavior is to be expected: You're moving the brush by setting its transform position (happens in Update()), but the tip is physically simulated (in FixedUpdate()). Since Unity calls FixedUpdate first and Update last, this means there will be a 1-frame delay between the movement of the brush and the tip.

You want the brush to move first, then the tip. So either move the brush before FixedUpdate() (can't do this in-editor though, since you can't modify built-in gizmo behavior), or simulate the tip in LateUpdate() by using a ObiLateUpdater component instead of the default ObiFixedUpdater.

See:https://docs.unity3d.com/Manual/ExecutionOrder.html
Reply


Messages In This Thread
RE: Problem about the joint of two objects - by josemendez - 16-05-2022, 10:01 AM