|
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.
(comments are locked)
|
|
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. 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 '12 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 '12 at 06:41 PM
MP0732
(comments are locked)
|
