Tao.Ode SDK Documentation

Ode.dCreateCapsule Method 

Create a capsule geom of the given parameters, and return its ID. If space is nonzero, insert it into that space. A capsule is like a normal cylinder except it has half-sphere caps at its ends. This feature makes the internal collision detection code particularly fast and accurate. The cylinder's length, not counting the caps, is given by length. The cylinder is aligned along the geom's local Z axis. The radius of the caps, and of the cylinder itself, is given by radius.

[Visual Basic]
Public Shared Function dCreateCapsule( _
   ByVal space As IntPtr, _
   ByVal radius As Single, _
   ByVal length As Single _
) As IntPtr
[C#]
public static IntPtr dCreateCapsule(
   IntPtr space,
   float radius,
   float length
);

Parameters

space
the space to add the capsule to
radius
the radius of the capsule
length
the length of the capsule

Return Value

the capsule

See Also

Ode Class | Tao.Ode Namespace