Tao.Ode SDK Documentation

Ode.dMassSetCapsuleTotal Method 

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

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

Parameters

mass
the mass to set
total_mass
The total mass of the capsule
direction
The orientation of the capsule's long axis (1=x, 2=y, 3=z)
radius
The radius of the capsule (and the spherical cap)
length
The length of the capsule (not counting the spherical cap)

Remarks

The capsule's long axis is oriented along the body's x, y or z axis according to the value of direction (1=x, 2=y, 3=z).

See Also

Ode Class | Tao.Ode Namespace