I have this basic IK code: Code (CSharp): private void OnAnimatorIK() { animator.SetIKPositionWeight(AvatarIKGoal.RightHand, 1); animator.SetIKRotationWeight(AvatarIKGoal.RightHand, 1); animator.SetIKPosition(AvatarIKGoal.RightHand, target.position); animator.SetIKRotation(AvatarIKGoal.RightHand, target.rotation); } The target is inside FPSController. That causes a problem: When I look in opposite direction of enemy, it is rotating wrong: Can you give me the right code of enemy aiming the gun at player or how to solve it?