- Home /
Definite Convex Mesh breaks when toggling on convex on Mesh Collider
Hi Im making a script that takes in a mesh, and based on that meshes uvs turns the mesh into a bunch of different meshes, and then uses those meshes on convex mesh colliders, Its working pretty well but it seems some, definite convex, with good normals, split meshes are just breaking apart as if the split mesh isn't convex.
This is the collider with convex off.
And Heres the same collider, same everything with convex on.
Btw in the future im looking to just have these boxes and other primitive type things be box colliders and the such but that will take a little bit longer and being able to just have every collider a convex mesh collider is quick for setting up and testing the map and its collisions etc.
Is this a bug cause i cant think of anything or other way of trying to figure this out, anyway thanks for any help.
Answer by Power37371 · Apr 26, 2021 at 11:10 AM
Changing the mesh collider cook settings from anything, to at least one of the options being off fixed it. I chose to turn off Enable Mesh Cleaning but it seems as long as one of the 4 cooking options are off and you toggle convex off and back on, then everything just works. As much as this is fixable this still seems like a bug.
Your answer
![](https://koobas.hobune.stream/wayback/20220613032737im_/https://answers.unity.com/themes/thub/images/avi.jpg)