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
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
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?
– anon73820239Right. Load up on Debug.Log statements and/or hit the debugger. If you wanna post some code we could review it.
– DaveA