- Home /
Question by
Wentzel · Nov 02, 2011 at 08:48 PM ·
errormeshaddcomponentshapes
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
Comment
Answer by Kiloblargh · Feb 08, 2013 at 10:37 PM
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.
Your answer
Follow this Question
Related Questions
Understanding an error message. 1 Answer
Creating Irregular 2D Shapes in Runtime 0 Answers
Create multiple meshs in one mesh 0 Answers
Failed to clean mesh???? 1 Answer
Mesh memory leak error 0 Answers