Tao.Ode SDK Documentation |
|
Ode.dMassSetCapsule Method
Set the mass parameters to represent a capsule of the given parameters and density, with the center of mass at (0,0,0) relative to the body.
[Visual Basic]
Public Shared Sub dMassSetCapsule( _
ByRef
mass As
dMass, _
ByVal
density As
Single, _
ByVal
direction As
Integer, _
ByVal
radius As
Single, _
ByVal
length As
Single _
)
Parameters
-
mass
- the mass to set
-
density
- The density of the capsule
-
direction
- The orientation of the cylinder's long axis (1=x, 2=y, 3=z)
-
radius
- The radius of the cylinder (and the spherical cap)
-
length
- The length of the cylinder (not counting the spherical cap)
Remarks
The cylinder'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