palCapsuleGeometry Class Reference

#include <palGeometry.h>

Inheritance diagram for palCapsuleGeometry:

palGeometry

List of all members.

Public Member Functions

virtual void Init (palMatrix4x4 &pos, Float radius, Float length, Float mass)

Protected Member Functions

virtual Float * GenerateMesh_Vertices ()
virtual int * GenerateMesh_Indices ()


Detailed Description

A capped cylinder geometry This represents a capped cylinder at a given position, with a given radius, length and mass A capped cylinder, is just like a normal cylinder, however it has rounded end pieces (ie: two hemispheres, one at the top, one at the bottom), as opposed to flat ones.
capsule.jpg
The diagram indicates the central point of the cylinder, as well as its length and radius. The default orientation of the cylinder is such that the length is specified along the "y" axis. The total length of the cylinder is the specified length plus double the radius.

Member Function Documentation

int * palCapsuleGeometry::GenerateMesh_Indices (  )  [protected, virtual]

Generates a set of corresponding indicies to represent the approximation to the geometry.

Reimplemented from palGeometry.

Float * palCapsuleGeometry::GenerateMesh_Vertices (  )  [protected, virtual]

Generates a set of vertices that represent an approximation to the geometry. This can be used for debug rendering, or generating the mesh for a convex object representation for some physics engines

Returns:
An array of Floats (3 Floats is 1 Vertex), or null if the functionality is unsupported or there is an error

Reimplemented from palGeometry.

void palCapsuleGeometry::Init ( palMatrix4x4 &  pos,
Float  radius,
Float  length,
Float  mass 
) [virtual]

Initializes the capsule

Parameters:
pos The transformation matrix representing the position and orientation of the Capsule
radius The radius of the Capsule
length The length of the Capsule
mass The Capsule's mass ????NOTE: HOW IS THE CENTER OF THE Capsule DEFINED? DIAGRAM.


The documentation for this class was generated from the following files:

Generated on Mon Aug 31 13:58:02 2009 for pal by  doxygen 1.5.7.1