I am generating a custom mesh through code and I add a Mesh Collider, set Convex to true, but some reason the collider does not align with my generated terrain mesh. What could be the reason for this?
Looks right to me. A convex mesh collider is a rough, convex approximation of your mesh, so it won’t match exactly. If you want the collider to actually be the same as the mesh then you need to set to not convex.
2 Likes