x


[Closed] Mesh colliders not working on FBX imported buildings

OK, so my 3D character runs through some of my buildings but I did the mesh the same way I did the other ones that work. What should the settings be at for the colliders to work? I have the generate colliders checked on all of them but it doesnt seem to be working.

more ▼

asked Feb 10, 2011 at 10:36 PM

Mikey X gravatar image

Mikey X
31 5 5 7

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

The question has been closed May 30 at 07:09 PM by meat5000 for the following reason:

The question is answered, right answer was accepted


1 answer: sort voted first

Nevermind, I figured it out. I had to make a new collider with the -component-physics-mesh collider- option. then I loaded the mesh I had in the prefab onto the new collider. Works perfect for me now.

more ▼

answered Feb 10, 2011 at 11:32 PM

Mikey X gravatar image

Mikey X
31 5 5 7

I have imported a mesh from a .obj file - appears the same as from an FBX. With this, how do you create a unity Mesh object which can be used as the parameter for the MeshCollider?

May 23, 2012 at 12:55 AM Swift_On_Fire

Just to restate Michael's (good) solution a little more clearly:

  1. Select the object (it should be an instance of a prefab in the project window) in the hierarchy window to which you want to add a mesh collider.
  2. In the toolbar at the top of the page in Unity, click on Component/Physics/Mesh Collider.
  3. Find the original, prefab object in the project window and its mesh (child) object. It may have a grate-like icon to the left of it.
  4. Drag the mesh object (don't click on it) onto the instance of the object in the hierarchy to which you want to add a mesh collider.
Aug 09, 2012 at 06:41 PM MP0732
(comments are locked)
10|3000 characters needed characters left

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:

x2188
x468
x207

asked: Feb 10, 2011 at 10:36 PM

Seen: 6688 times

Last Updated: Aug 09, 2012 at 06:41 PM