Compute mesh shapes

function OnCollisionEnter(MyCollision : Collision){

if(MyCollision.gameObject.name == “Floor”){

if(!MyCollision.gameObject.rigidbody){

  MyCollision.gameObject.AddComponent(Rigidbody);

  }

}

}

I keep Getting the error “Compute mesh inertia failed for one of the actor’s mesh shapes”
I have never came accros this error so i have no idea what the reason is.

It keeps leading to this Code which i see nothing wrong.

Thanks in advance.
~Wentzel

I’m assuming Floor is a Unity primitive plane?

Just remove its mesh collider component and replace it with a thin (but not completely flat) box collider.