Marble going throught the map

Hello,

I am creating a marble game. I had an issue, where the marble falled under the map when flying at high speed. I heard that Continuous collision detection could fix that. However, I had some game objects which used mesh colliders (like a 90 degree bended platform element), because the primitive colliders can’t handle it. And Continuous collision detection can not be used with mesh collider.

So I have found another solution, the DontGoThroughThings script. It has worked fine, untill I have discovered that my respawn system doesn’t working with it. When my marble falls down in a specific way, that the marble is between the ocean and the platform, near a pillar, the marble is respawning under the respawn position, so it falls down again.

I have tried to fix it by putting the respawn place higher (30 meters above), but the marble is still spawning under the platform. Now I don’t know what should I do to stop the marble going under the map at high speed, but also keep my respawn system.

Any suggestions?

I have managed to fix it by doing the following:
I have added a new trigger event right before the respawn collider. It has deactivated the script, then the marble has been respawned. Then, after 1.5 seconds, I have reactivated the script. This way, it looks like it is working.