- Home /
Question is answered multiple times.
My object falls through terrain.
Hi.
I am a particular unity and gamedev newbie overall. I have an object with Mesh Collider active. Whenever I add rigidbody to it, the object falls through terrain.
Please explain what I'm doing wrong.
i downloaded a mountainous terrain from the store and my character falls though it, i have tried everything....
Answer by Waz · Oct 25, 2011 at 02:39 PM
Mesh Colliders are not useful on Rigidbodies unless they have Convex set, because otherwise they do not collide.
I had the same problem. Once I set the mesh collider to be convex it worked perfectly. Thank you!
I have been beating my head against the wall trying to figure out why my mesh colliders on my chain links aren't working and this seems to be the only answer. $$anonymous$$y question to you is, do you know why don't mesh colliders work? Is it related a bug that will be fixed? Did mesh colliders ever work? Do you think they might be made to work in the future?
Answer by GlennHeckman · Nov 22, 2010 at 08:13 PM
make sure that the bottom of your rigid body's collider is above the terrain at start, otherwise, if you have it "sitting" on the ground, the math might mistake it as already below the ground and start to fall. Simply lifting the object a bit so that the colliders don't overlap should do the trick
Answer by tomeromero · Nov 23, 2010 at 09:54 PM
if your gameobject is exported from a 3d software make sure in the project view to tick the Generate Colliders and hit Apply.And then drag your gameobject in your scene.
Answer by Rgalaxy · Dec 01, 2013 at 12:29 PM
i just encountered the same problem, its because my floor was a Plane, and when i try to change it with box, it doesn't fall through.. maybe yours too? try to use "Box" instead of Plane.