Unity MeshCollider component Convex explained


In the application of a property Convex in the MeshCollider component, this function is very useful, but it also has a pit in it

His benefits When you click, he will automatically generate a collider according to the model, which is an irregular collider.

His disadvantage is  that when you don’t click Convex, for example, when you have an object in such a position as shown in the figure


When surrounded by MeshCollider, you can't check this object by ray inspection, even if you ignore the MeshCollider object by layer, you can't check it out.
When your Convex is checked, he will choose the best collision body:


However, the middle positions are all colliders or triggers, and the middle is empty like the one above.


————————————————

Original link: https://blog.csdn.net/qq_27220993/article/details/69951045

 

Guess you like

Origin blog.csdn.net/weixin_42565127/article/details/130013840