Check if object left a specific collider.

If an object touches another object with tag "box" then the bool box = true.

The problem is that if the objects don't touch, the bool stays true. I need it to change to false if it doesn't touch the object with box tag.

Thanks

1 Answer

1

I take it you've looked at OnCollisionExit?

Sounds to me like OnCollisionExit should work =\ have you tried hunting down the problem by making it print something for debug purposes?

–

Right. Load up on Debug.Log statements and/or hit the debugger. If you wanna post some code we could review it.

–