Mesh collider not generated as expected on imported model
Hello
I have a particular problem when generation a meshcollider from a Mesh.
What i did was to create a 3d model in MagicaVoxel and exported it in Unity as a .obj. Then i wanted to have a proper collider for this model. I added a meshCollider and checked/unchecked "Convex" option. I also tried to check "Generate colliders" in the import menu of this model.
in the end i get a meshcollider that is not as expected
As you can see the model is really basic (looks like a rectangle) but the generated collider doesnt take account of the geometries and i get a wrong collider as a result. Its annoying because i already made all models the same way (for a racing track built block by block) and it could be troublesome to create colliders individually by hand (i have ~100blocks).
Do you have any idea about what i did wrong or if there is a way to generate a precise collider or even multiple colliders (a lot of boxes for example) for each model ? Maybe there is something in MagicaVoxel i can use to take account of the geometry in Unity ?
Thanks in advance !