- Home /
Problem with mesh collider
Hello this is my mesh collider
And when i check Convex it makes this
Any solution?
On first picture is my plane with mesh like you see, i add mesh collider and give the same mesh like on plane, collider looks good and works good, but i need to make collisions with terrain and i need to check convex, but when i check convex it make make collider like you see on picture two
Answer by HarshadK · Feb 17, 2015 at 02:28 PM
Because your mesh is a concave mesh and you are setting it to be convex mesh so Unity generates convex colliders based off the shape of your mesh (your image 2).
Read: Convex and concave polygons for more details.
The problem is better explained in the video from this thread Concave Collider - Generate compound colliders with one click!. It is a forum thread for an asset that allows for concave mesh colliders.
Asset looks good, but when it compute new mesh then will be possible to check convex ? because i need to make collisions and there is just one way how to it - have convex mesh
You can use the concave collider asset from above link or create a different mesh to use as collider but make sure this new collider mesh has convex shape to be able to generate convex collider from it.
But also there seems to be some problem with the Original mesh itself as per how collider is generated.
i really dont understad, i have this asset, i give there my plane with this mesh. It log that no hull computed. And in convex log me convex hull computation failed... So i dont have convex and concave ? :D how then ?
Answer by hexagonius · Feb 17, 2015 at 02:32 PM
This post states the same problem.
http://forum.unity3d.com/threads/resize-plane-object-mesh-collider.32128/
I guess the physics engine can't figure out if your mesh is convex, since its not volumetric. Give it a height and I bet it works.
Your answer
![](https://koobas.hobune.stream/wayback/20220613183558im_/https://answers.unity.com/themes/thub/images/avi.jpg)