- Home /
collision issue
I came across a problem while making a game. I have a mesh made with blender containing around 46,000 vertices. This made the engine divide the mesh into 3. (this might be the cause of the problem. When I try to apply collision to the mesh, it doesn't work. I've tried countless combinations of collides and rigid bodies. The terrain isn't the problem, since other meshes collide with the terrain. Here's the mesh falling through the terrain (this is only 1 of the combinations of colliders+rigidbodies. On the left, there's the hierarchy which includes the split up mesh represented as "icosphere")
You cannot use a skinned meshcollider with a rigidbody, in reality you shouldn't use a skinned meshcollider at all. Everyone uses capsule colliders or a combination of colliders. Not to mention a meshcollider doesn't work if it isn't attached to a gameobject that has a mesh, it doesn't assume children are a apart of the main object, so your current meshcollider does nothing. Try using a capsule.