- Home /
Question by
Faiz_Abdullah · Apr 21, 2020 at 03:26 AM ·
spritescubeinstantiate prefabontriggerenter2d
Enemy shoot through wall
My enemy can shoot through a wall. The thing about my game is, I use 2d sprites for all my assets EXCEPT the wall. The wall is from cube. So i guess the problem has to be on the collider... right? But idk how to fix it. Any ideas?
Comment
Answer by jkpenner · Apr 21, 2020 at 03:37 AM
It sounds like you may be mixing 2d and 3d physics. Your wall is probably using a BoxCollider which is a 3d collider, try replacing it with the 2D version, BoxCollider2D.