x


Falling through ground with colliders

Imported a FBX of a vehicle, made sure to tick Generate Colliders, and it's well above the terrain so it's not partially stuck inside it. Soon as I add a Rigid Body, it falls straight through immediately upon start no matter what I do. Tried adding different shaped collider meshes to it, cube, plane, sphere, the actual body of the model... nothing matters.

more ▼

asked Mar 16 '11 at 08:21 AM

daxx gravatar image

daxx
1 1 1 2

Terrain Collider is there, As Trigger is NOT checked. I tried applying the colliders to each part of the model, no beans.

Only thing that remotely worked so far is adding a plane to the bottom of the vehicle and THAT collides with the terrain - but that is far from ideal, bordering on worthless, and high points in the terrain pop up through the vehicle.

Mar 16 '11 at 07:04 PM daxx

Has anyone solved this? I'm having the same issue and none of these answers work.

I've imported two .blend models, one of a plane that acts as the terrain and a simple person model. The plane has a terrain collider and the simple person has a mesh collider and rigidbody. The person starts 5 to 6 units above the terrain and upon play, the model falls through the plane with no error message. None of the colliders are set to act as triggers, and even a unity cube with a box collider and rigidbody falls through the terrain.

The plane does have some complex geometry in it, but it's not being rendered as separate meshes, it's all one mesh.

May 08 at 06:24 PM MikePatterson
(comments are locked)
10|3000 characters needed characters left

5 answers: sort voted first

make sure you apply the collider's to each individual mesh. don't apply the colliders to the entire .fbx as a whole. just it's individual parts. also, try adding more than 1 mesh to collide. if 1 mesh isn't working, duplicate it for double protection.

more ▼

answered Mar 16 '11 at 02:07 PM

shawnkilian gravatar image

shawnkilian
361 21 28 41

This is the key. Thanks.

Dec 30 '12 at 12:00 AM rw3iss

if that's the correct answer PLEASE "TICK" IT to help close out the question

Dec 30 '12 at 08:14 AM Fattie
(comments are locked)
10|3000 characters needed characters left

Can you take a look here on your Unity:

Edit->Project Settings->Physics->collisionmatrix

more ▼

answered May 12 '11 at 10:31 PM

Infinity gravatar image

Infinity
141 36 39 44

Exactly. Generate Colliders makes non-convex Mesh Colliders, which do not interact with terrain.

Oct 25 '11 at 02:37 PM Waz
(comments are locked)
10|3000 characters needed characters left

In the rigidbody component, is gravity checked? that could be one reason it falls off.

more ▼

answered May 03 '11 at 05:35 AM

kissofdeath gravatar image

kissofdeath
26 3 3 5

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

Maybe your Terrain Collider is set as Trigger or is removed from the terrain?

more ▼

answered Mar 16 '11 at 11:36 AM

efge gravatar image

efge
5.1k 5 14 38

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

increase its y position so its not touching the ground

more ▼

answered Mar 20 '11 at 11:40 PM

networkZombie gravatar image

networkZombie
244 9 11 20

Erm. "... and it's well above the terrain so it's not partially stuck inside it."

Mar 21 '11 at 08:45 AM daxx
(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
x1682
x1463
x97
x18

asked: Mar 16 '11 at 08:21 AM

Seen: 6327 times

Last Updated: May 08 at 06:24 PM