I have a hook with hinge joint which is working fine but as my object quickly move my hook leave its position for a while.
And here is the hinge joint settings with rigidbody:
Here is a short clip of the problem.
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It only takes a minute to sign up.Sign up to join this community
The parent object which was moving the Hook working through animation and by setting its animator update mode to AnimatePhysics, the problme has resolved. What Animate Physics property do is:
When turned on, animations will be executed in the physics loop. This is only useful in conjunction with kinematic rigidbodies.
An animated platform can apply velocity and friction to rigid bodies sitting on top of it. In order to use this, animatePhysics must be enabled and animated object must be a kinematic rigid body.
Now the animation is executing in same physics loop which has resolved the issue.
Thanks to Chance Millar.