You can't invert 'OnCollisionWithObject' so is there an easy way to say 'WhenNotOnCollisionWith' without using global variables? It's gonna become tricky with global variables : P
Develop games in your browser. Powerful, performant & highly capable.
Collision events are triggers and can't be inverted. Instead, you want to use "Is overlapping another object" and invert that.
OnCollision is a trigger, not an event. It is ONLY true and ONLY run when the collision occurs. It is not processed in the usual manner, per tick.
Ah overlapping object of course...thanks for the responses!