Exemple #1
0
 public override void CalculateMassInertia()
 {
     this.mass = Shape.CalculateMassInertia(this, out shifted, out inertia);
 }
Exemple #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);
 }
Exemple #3
0
 public override void CalculateMassInertia()
 {
     this.mass    = Shape.CalculateMassInertia(this, out shifted, out inertia);
     this.shifted = Vector3.Zero;
 }