Issues with my mesh colliders

Ok, i have this picture below to use as reference if needed.

Basically, what I’m trying to do is have the rocks (seen at the top, floating at the top of the scene view) fall onto the terrain and pile up. I have the rigidbody component on every single rock (pCube# in the heirarchy view) as well as a mesh collider.

Each mesh collider has the proper mesh assigned to it, and isTrigger is unchecked, but the rocks just fall straight through the terrain below! I’ve been playing around with different possibilities for like 2 hours, but to no avail.

any suggestions?

here is the non-direct way. make the area more flat and put a plane there with a box colider (can’t spell). Then for the rocks use the sphere colider (see!).

Well, I gave that a shot and it ended up working pretty well! I only used the box collider (there were so many rocks!) but it still worked great!

This leads me to believe, however, that there is a problem with the terrain collider that comes pre-attached to the terrain. My FPS Controller doesn’t fall through, but my rocks do…?

Hello,

I think mesh collider against a mesh collider don’t collide unless one or both is convex

Ray

good. Glad to here my suggestion worked but if you use the sphere collider on the rocks they can pile up easier and more and make it look more real.

yellowlabrador, thank you so much that worked perfectly!

Don’t thank me,

Someone ask that question before and somebody answered it and I just happen to remember

:smile:

Edit: Mesh collider sometimes are bad for collision performance wise I think. But then I could be wrong