I’m using the “registerOnPhysicsCollide” to detect collisions between two impostors. When testing this I notice it continually calls the callback even when the impostors are touching but not moving (like a sphere touching the ground). I understand this is how it should work since technically it’s still colliding, but is there a way to check if a collision happens once (first time it collides)?
I know in Unity you can use an “OnCollisionEnter” and “OnCollisionExit” and wanted to know if there was something similar within Babylon? If not I suppose I could add in some sort of boolean toggle of sorts to check this myself (possibly more complex for exiting).