Search Unity

  1. Unity 2020.1 has been released.
    Dismiss Notice
  2. We are looking for feedback on the experimental Unity Safe Mode which is aiming to help you resolve compilation errors faster during project startup.
    Dismiss Notice
  3. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

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);
     
unityunity