Player drives through walls

Hello, it seems that my player can drive through walls, rocks and other players. Any idea why this may be happening?

Hi jobo11,

Welcome to our community! :slight_smile:

Only colliders are able to collide with other colliders. No collider, no collision.

Also make sure that the car is not too fast. Start with a rather slow speed to see if the collisions work.

Did this help you?


See also:

It was because I had istrigger enabled for the walls. When isTrigger is disabled, the bullets bounce off the walls instead of performing the onTriggerEnter2D method.

Ah, I’ve just noticed that I replied in the wrong thread. There were some technical problems with the forum yesterday.

I’m glad you found and solved the problem despite my confusing reply. :slight_smile:

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

Privacy & Terms