Tao.Ode SDK Documentation

Ode.dMassSetSphereTotal Method 

Set the mass parameters to represent a sphere of the given total mass and radius, with the center of mass at (0,0,0) relative to the body.

[Visual Basic]
Public Shared Sub dMassSetSphereTotal( _
   ByRef mass As dMass, _
   ByVal total_mass As Single, _
   ByVal radius As Single _
)
[C#]
public static void dMassSetSphereTotal(
   ref dMass mass,
   float total_mass,
   float radius
);

Parameters

mass
the mass to set
total_mass
the total mass of the sphere
radius
the radius of the sphere

See Also

Ode Class | Tao.Ode Namespace