How to change the pose of the player, like make it sit when comes near a chair or maybe grap a ball when it comes near a ball?

I am curious to know how can we make small animations like:

  • grab a ball
  • sit on a chair
  • or any other interaction with our player and the objects in the surroundings.

thanks.