Mesh collider detached from the actual mesh

Hey,

So i’m making a game in which you can destroy object i’ve created everything to slice it in small pieces, but the probleme is when i run the game with the sliced object in the scene the mesh visual is not attached to the mesh collider so visually some pieces are floating when the collider is on the floor.

Here is an example :

Did someone know how to solve the issue ?
(i use unity lts 2020.3.19f1)
Thank you

Ok so i did found the solution it was a problem of scale in the parent basically i had a parent with a scale and under there was every pieces with the mesh renderer and the mesh collider, what you have to do is just simply set the scale of the parent to 1 1 1 like that :
7632049--949969--upload_2021-11-5_15-46-49.png
and change the scale of each pieces to what you want.
Hope this could help some people

1 Like