No matter what i try at random locations and times my ball keeps going through my terrain mesh collider.
Is there an alternative, i suppose the nice thing is being able to mould the terrain and have it automatically “Solid”. But its really not working no matter what i try. Anybody got any ideas how i can solve this?
There is not a lot of information to work with here. I assume both objects have a collider and at least a one a rigidbody, since you implied it works most of the time and then randomly fails.
Does the problem maybe only occur at higher speeds or certain places on the mesh?
Try continuous collision detection mode.
Did you try setting either of the objects as convex?
I believe one has to be when the other is a mesh collider.
If that does not help, please describe your setup in more detail.
On the rigidbodies you can try to change discrete to continues and see if that helps. If so, the mesh is too thin for discrete collision.
Having everything which is possible at convex (or replace with primitive shapes) always is good indeed