Is there a way to detect a collision only once? I was testing the registerOnPhysicsCollide
, but it seems that it fires more than once when it hits the ground, even with restitution: 0
Take a look: Babylon.js Playground
Im trying to play a grounded sound effect once my character hits the ground, but in my situation it keeps firing constantly and I’m not sure how to solve it. In my specific situation even whe the character seems to be grounded the sound effect keeps playing constantly.