Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Pick Up and Pass Ball

Discussion in 'Scripting' started by Master-Antonio, Feb 16, 2015.

  1. Master-Antonio

    Master-Antonio

    Joined:
    Sep 18, 2014
    Posts:
    13
  2. image28

    image28

    Joined:
    Jul 17, 2013
    Posts:
    457
    The way it is done in the game I'm currently working on is to have a empty gameobject/transform on the character with the position where the ball should be held, then when the pickup condition occurs in an Update you assign the position of the ball to the position it should be held on the character.

    Another way of doing this would be just to parent the ball to the character.
     
  3. Master-Antonio

    Master-Antonio

    Joined:
    Sep 18, 2014
    Posts:
    13
    New Thread : http://forum.unity3d.com/threads/pick-up-and-pass-ball.299276/#post-1972155
    Thank for your Help.