Search Unity

Error Displayed on Editor...

Discussion in 'Editor & General Support' started by pavees, May 12, 2010.

  1. pavees

    pavees

    Joined:
    Jan 1, 2009
    Posts:
    116
    If any one could help me in understanding this. :( :( :( :( :( :( :( :( :( :( :( :( :( :(
     
  2. andeeeee

    andeeeee

    Joined:
    Jul 19, 2005
    Posts:
    8,768
    This usually occurs when you add a rigidbody component to a mesh that is not a completely enclosed volume. This can be because the mesh was intentionally designed that way (eg, a flat plane) or because there is a missing polygon in the mesh. If the mesh is intentionally open, but still needs a rigidbody, you can set the value yourself from the script with the inertiaTensor property:-
    Code (csharp):
    1. rigidbody.inertiaTensor = new Vector3(1, 1, 1);