x


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.

more ▼

asked Nov 22 '10 at 06:55 PM

Blob gravatar image

Blob
17 1 1 1

(comments are locked)
10|3000 characters needed characters left

5 answers: sort voted first

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

more ▼

answered Nov 22 '10 at 08:13 PM

GlennHeckman gravatar image

GlennHeckman
335 7 10 19

(comments are locked)
10|3000 characters needed characters left

I had the same problem. Once I set the mesh collider to be convex it worked perfectly. Thank you!

more ▼

answered Mar 04 at 06:09 PM

rhowell gravatar image

rhowell
1

(comments are locked)
10|3000 characters needed characters left

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.

more ▼

answered Nov 23 '10 at 09:54 PM

tomeromero gravatar image

tomeromero
75 15 15 22

(comments are locked)
10|3000 characters needed characters left

Mesh Colliders are not useful on Rigidbodies unless they have Convex set, because otherwise they do not collide.

more ▼

answered Oct 25 '11 at 02:39 PM

Waz gravatar image

Waz
6.4k 22 33 70

(comments are locked)
10|3000 characters needed characters left

does your terrain have a collidor on it as well?

more ▼

answered Nov 22 '10 at 07:12 PM

frmusta gravatar image

frmusta
108 17 17 28

of course it does.

Nov 22 '10 at 07:35 PM Blob
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x1864
x1781
x1682
x1463
x10

asked: Nov 22 '10 at 06:55 PM

Seen: 6322 times

Last Updated: Mar 04 at 06:09 PM