Enemy gets through wall over time, colliders working.

y enemy will get to the wall and be half through it for a while, and eventually works through the collider. How to stop this?

I am going to assume it has something to do with your collider positioning. Check the green “box/sphere/capsule/etc”, and ensure that it is properly placed in the middle of the object.

Perhaps if you post a screenshot, I can see exactly what the problem is. Turn on gizmos, and screen-shot where the issue occurs.