[Mecanim + IK] Ik doesn't follow what is supposed to follow on time.

Hi fellow developers,

Here is something that is puzzling me. I have the arms of my character following a gun with IK. The gun moves with the camera but the arms don’t really follow the gun.

Here is a quick video that demonstrates the problem I’m having: http://youtu.be/bseU7h-hqi8

I tried updating the rotation of the character in both the Update and the LateUpdate functions but the result was the same.

Any help, tip or idea that will make me fix this problem is highly appreciated.

Thanks

If I had to guess I would say you’re not handling the rotation correctly. Check out this page: