예제 #1
0
 public override void CalculateMassInertia()
 {
     this.mass = Shape.CalculateMassInertia(this, out shifted, out inertia);
 }
예제 #2
0
 /// <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);
 }