I’m making a game with both a ball and a player. So far I made a sphere for the ball and a cube (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 it’s 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?
Thanks