Strange behavior in collider of overlapping objects.

Hello!

How can i prevent this to happen?

I’m taking a course and I noticed that this happens, does anyone know why this happens?

Is it a Unity bug with Collider overlapping or is something missing? Because the collision with the Zombies and straight walls with no other overlapping objects are as per the course.

The teacher didn’t help so much…

Collider error gif