- Home /
Why do GameObjects need Rigidbodies to collide?
When I first started on my project I wasn't sure how my AI was going to move so I added Rigidbody2Ds to them in the likely case that I would need them for their movement. As it turned out, I didn't need to reference their Rigidbodies so they were unneeded, but I didn't get around to removing them until now, when I realized they were detrimental to something else I'm trying to implement. Upon removing them, some of the AI's vital collisions stopped working. The AI will still collide with my player and his sword, with both have Rigidbody2Ds, but won't collide with my base (an object which is supposed to be static) without giving it a dynamic Rigidbody2D. Worst case scenario, I can give it a Rigidbody2D and make it ignore my player/sword, but I don't see why I should have to do that. Even if there's no fix, an explanation would be helpful. Thanks in advance.
Does your base have a collider? Rigidbodies should be able to collide with everything that has a proper collider which isn't set to be a trigger.
Your answer
Follow this Question
Related Questions
How is Rigidbody 2D Auto Mass calculated? 2 Answers
Can I create boundaries around my level without using box colliders? 3 Answers
Wall checking not working correctly 2 Answers
dragging on a gameObject messes with collisions 1 Answer
Is it possible to have continuous collision detection with dynamic points on Edge Colliders? 0 Answers