What does convex do in mesh collider component?
I have been using mesh component pretty much nowadays but I have been confused of what does convex do? And does it optimize colliders or anything else?
So can anyone explain to me what it's used for?
Answer by 5c4r3cr0w · Apr 01, 2016 at 04:09 PM
Convex mesh collider reduce the mesh to 255 triangles so yes is optimize your mesh of it has more triangles than 255 in it.
If your Rigid body is non kinematic and you want to make it collide with other convex and non convex meshes then you have to use convex mesh collider.
However it's only good for closed meshes because it joints all vertex. So if you have mesh having open ends or holes then it won't work well.
Thanks for your answer. I would like to ask, what is the solution in case you want a non kinematic rigid body that contains holes collides with other colliders?
@backer_s you would model convex colliders in a 3d app that surround the hole. You need to create as many convex colliders as necessary to represent the non-convex model via a number of convex models. Read about convex vs concave and read about "Convex hull" operation in Blender.
Your answer
Follow this Question
Related Questions
How to fix Unity 5 Mesh Collider Convex Problems? 1 Answer
Mesh collider only creates collider on the outside 0 Answers
Removing Tris/Verts/Polygons from an merged mesh? (C#) 0 Answers
Rendering performance of single large mesh vs multiple smaller meshes 0 Answers
Check if position is inside a collider 5 Answers