- Home /
Duplicate Question
how do i correctly use a box collider
For my game, i want to have a fog of war. I want the enemy to be rendered only in the lighted area. So i expanded the box collider of my player(a little cube) and i've set up the OnTriggerEnter(hit:Collider) function on my enemy. The problem : unity do not detect anything when player and enemy touch. The OnTriggerEnter funtction is never called :( pls help
Ps: both player and enemy have rigide bodies and colliders
Duplicate Question : http://answers.unity3d.com/questions/334747/how-do-i-correctly-use-a-box-collider.html
Please Delete this Question.
Please be patient if your question/reply doesn't show straight away.
As a new user, your posts and questions are held in a moderator que until it is approved and then it is displayed. When your karma rises, you'll be able to post questions, comments and answers without waiting for someone to approve it =]