- Home /
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?
Answer by Montraydavis · Oct 27, 2012 at 03:28 AM
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.
I think I know the problem. I have a script to spawn my enemy, but when I adjust the enemy I have on map at start, it is not changing the spawners. I don't know why this is... Because I played around with its collider making it HUGE and still, gets very close to wall and works its way through.
ended up needing to reset the prefab in spawner to new one made with new settings on enemy.
Great. I am glad to see your issue has been resolved.