Question by
ryancs1984 · Mar 17, 2020 at 12:54 AM ·
c#transformobjectunityeditor
How can I use the collision from a moving game object(such as a projectile) and use it to "pick up" another game object?
I am making a game in the style of old school Breakout. I have been able to have the player throw a projectile and destroy the object using onCollision. Now i am trying to put the stationary object into an inventory not attached to the projectile. I guess you could think of the mechanics like fishing. The bobber destroys the fish, the bobber magically teleports the fish into your storage box. I am guessing there is some Transform function that might work but i am not yet familiar with how to write it.
Comment
Also, I am not wanting to just move the object. I want to put it into an inventory slot with a new image and it will have the amount stored with it too.