Colliders and Rigidbodies 2d

I’m doing the 2d course, in the Scrap Garden section now, and one thing I don’t understand is why I seem to need a RigidBody2d component on my projectiles for them to work.
The colliders on them are triggers, shouldn’t they trigger without a RigidBody?
This confuses me, as in the lecture with the Gnome it doesn’t seem like Rick has a Rigidbody on the axe.

Hi Yonatan,

Does this response on stackoverflow answer your question?

http://answers.unity.com/answers/1095714/view.html

It does, thanks for the quick response!
I must have missed adding a Rigidbody2d to my lizard back when redoing all prefabs with good parent-child relationships, and I had one on the zucchini, so it mystified me that the axe didn’t work without a Rigidbody.
I added one to the lizard and removed from the projectiles and it all works perfectly!

Well done! :slight_smile:


See also:

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms