I'm developing a tennis game and now I'm trying to sync my player's swing when impacting the ball. I have only one animation for now, but it's enough for what I'm trying to achieve at the moment. Basically, I would like to change the default animation at runtime so I can reduce the gap between the racket and the ball at the time of impact. Right now I'm setting a threshold that if the ball is at certain distance of it, then it's considered a hit. That threshold it's too big to make it look realistic. I've tried IK with no good results. I wonder at this point if IK is really the way to go as it would seem that it would require far more calculations and complexity if it is possible at all. I wonder if there's a simpler approach I could try. Also I'm not sure if I'm not obtaining good results with IK because of the animation itself that wasn't really prepared for this. If that could be the case, may I also wonder what are best practices to have animations that work seamlessly with an IK pass? Code (CSharp): //a callback for calculating IK void OnAnimatorIK() { if (animator) { //if the IK is active, set the position and rotation directly to the goal. if (ikActive) { // Set the right hand target position and rotation, if one has been assigned if (ball != null) { Vector3 currentPosition = animator.GetIKPosition(AvatarIKGoal.RightHand); //The avatar the IK is running on GameObject avatar = this.gameObject; //Distance from avatar to ball float distanceToBall = Vector3.Distance(racket.transform.position, ball.position); //Weight will be close to 1 as ball gets closer to the avatar float weight = 1 - Mathf.Max(Mathf.Min(distanceToBall / 50, 1), 0); //Set IK target weight animator.SetIKPositionWeight(AvatarIKGoal.RightHand, weight); //Set IK target animator.SetIKPosition(AvatarIKGoal.RightHand, new Vector3(currentPosition.x + 10, currentPosition.y, currentPosition.z)); } } //if the IK is not active, set the position and rotation of the hand and head back to the original position else { animator.SetIKPositionWeight(AvatarIKGoal.RightHand, 0); } } }