- Home /
Collision of a non primitive with a terrain
Hello!
I don't understand why can't I create a collision agains my new terrain created. A simple cube can collide bouncing just like I want but a custom mesh imported as a .fbx can't do it and it falls endlessly passing through my new terrain.
Maybe is it due to the green edges of the cube and blue edges of my custom mesh?. Is it related to my problem?.
I've added a mesh collider which corresponds to me particylar mesh.
Can you help me please?.
Thanks
Answer by asafsitner · Sep 16, 2011 at 11:24 AM
Yes, the edge color indicates if it's a collider or not. On your mesh collider component, make sure the 'convex' box is checked.
Answer by jorgon · Sep 16, 2011 at 11:44 AM
YES!!..I've solved just before you answered me but thank you very much!!. The problem was that my mesh had more than 255 triangles and although I activated the convex checkbox it hapenned nothing. In the reference manual you can read this: link text
Good, good ^^ Better mark the question as answered (accept $$anonymous$$e or your own answer) so it won't appear on the 'unanswered' list. :)
Your answer
![](https://koobas.hobune.stream/wayback/20220612213755im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Having an array of points(vector2), how do I create a 2d terrain? (new to unity) 2 Answers
Generate collision mesh from 2d texture? 0 Answers
Terrain Detail Mesh Collisions 1 Answer
Crawling around the terrain 3 Answers
Detail Mesh doesn't collide. 2 Answers