Quantcast
Channel: Questions in topic: "parenting"
Viewing all articles
Browse latest Browse all 302

Mess up with triggers, colliders and all this stuff :(

$
0
0
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?

Viewing all articles
Browse latest Browse all 302

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>