Ball doesn't stand still in the hands of Goalie

The Gollie has this piece of script to catch the ball. Although the ball becomes the child of goalie’s right hand it doesn’t really get attached firmly but bounces close to the goalie and stops on the ground. How can I make the ball get attached firmly in the goal keeper’s hand?

  void Catching()
  {
      if (pickOBJ != null)
      {
          pickOBJ.transform.parent = parent.transform;

          pickOBJ.transform.position = parent.transform.position;
      }
  }

Is the ball a physics Rigidbody? If so, enable the IsKinematic flag so that the ball’s position is controlled entirely through the transform and doesn’t get affected by other physics objects.

1 Like