Example #1
0
 // Get the mass, converting from inverse mass.
 public static float GetMass(this PhysicsMass physicsMass)
 {
     return(math.abs(physicsMass.InverseMass) > float.Epsilon ? math.rcp(physicsMass.InverseMass) : 0f);
 }
Example #2
0
 // Get the inertia, converting from inverse inertia.
 public static float GetInertia(this PhysicsMass physicsMass)
 {
     return(math.abs(physicsMass.InverseInertia) > float.Epsilon ? math.rcp(physicsMass.InverseInertia) : 0f);
 }