Tao.Ode SDK Documentation

Ode.dCreateCylinder Method 

Create a (flat-ended) cylinder geom of the given parameters, and return its ID. If space is nonzero, insert it into that space. The cylinder's length is given by length. The cylinder is aligned along the geom's local Z axis. The radius of the cylinder is given by radius.

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

Parameters

space
the space to add the cylinder to
radius
the radius of the cylinder
length
the length of the cylinder

Return Value

the cylinder id

See Also

Ode Class | Tao.Ode Namespace