So, I want to code grenades.
Right now I have a trigger and a boxcollider in them, with a rigidbody2D too.
The problem is.
I want the player to take the grenades with E, if its inside it's trigger.
Then I want to throw them, with a rigidbody and collider, depending on player speed.
The main thing here is that I cannot attach my grenade to the player if it has a rigidbody.
Any thoughts on how to mess with grenade pick up, thrown and colliding?
↧