- Home /
3d models do not have collisions between them
In my scene I added 3D models and I attributed the mesh collider and the rigidbody. When the player hits a model collisions there are, but if there are two models to touch, they go through, they seem to ghosts. How come there are no collisions between a model and the other?
Answer by robertbu · Aug 08, 2014 at 06:42 PM
One of your two mesh colliders must be marked at Convex in the collider component. And for Convex to work, there must be less than 255 triangles in the mesh.
unfortunately my models have many more triangles .... There is a way to create a precise collider with the 3D model? For example, if I put a chair concave I can not add a box collider and keep out "in the empty chair"
A couple of thoughts. For some things, you can build a reasonable approximation out of primitive colliders:
http://www.3dbuzz.com/training/view/unity-fundamentals/physics/6-creating-complex-colliders
You can also use a simplified version of your mesh for the collider rather than the chair mesh. Other than knowing it is possible, this is not something I've done before, so there may be issues I'm unaware of. But in theory...
Answer by abhishek7 · Aug 09, 2014 at 12:29 PM
Simply add a rigidbody and polygon collider to each model-or, if you want, a box collider. Get rid of the mesh collider. I think this should work.