title: Accessing object's position from another script in Unity
body: <p>I'm making a game with both a ball and a player.  So far I made a sphere for the ball and a square (models will be made later) for the player.  I attached a movement script to the player so that it can go in all directions, but I want him to be able to pick up the ball when he runs into it.  To do this,  I'm assuming that in the ball script, within a collision function, I would have to change its position to the position of the player.  So I'm wondering: what is the correct way of accessing those coordinates of the player from the ball script?</p>