コード例 #1
0
 public override void CalculateMassInertia()
 {
     this.mass = Shape.CalculateMassInertia(this, out shifted, out inertia);
 }
コード例 #2
0
ファイル: Shape.cs プロジェクト: mengran3275188/EntitasUnity
 /// <summary>
 /// Numerically calculates the inertia, mass and geometric center of the shape.
 /// This gets a good value for "normal" shapes. The algorithm isn't very accurate
 /// for very flat shapes.
 /// </summary>
 public virtual void CalculateMassInertia()
 {
     this.mass = Shape.CalculateMassInertia(this, out geomCen, out inertia);
 }