palGeometry Class Reference

#include <palGeometry.h>

Inheritance diagram for palGeometry:

palBoxGeometry palCapsuleGeometry palConcaveGeometry palConvexGeometry palSphereGeometry

List of all members.

Public Member Functions

virtual palMatrix4x4 & GetLocationMatrix ()
virtual const palMatrix4x4 & GetOffsetMatrix ()
virtual Float * GenerateMesh_Vertices ()
virtual int * GenerateMesh_Indices ()
palBodyBaseGetBaseBody ()

Friends

class palBody
class palBodyBase
class palGenericBody


Detailed Description

The base geometry class. The class used to represent the shape, or part of the shape of a body (object). The geometry allows automated calculation of a bodies inertia properties, and provides the information required to perform collision detection.

The geometry includes the inertia properties, as well as a mass.


Member Function Documentation

int * palGeometry::GenerateMesh_Indices (  )  [virtual]

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

Reimplemented in palSphereGeometry, palBoxGeometry, and palCapsuleGeometry.

Float * palGeometry::GenerateMesh_Vertices (  )  [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 in palSphereGeometry, palBoxGeometry, and palCapsuleGeometry.

palBodyBase * palGeometry::GetBaseBody (  ) 

Returns the body the geometry is attached to, if valid.

palMatrix4x4 & palGeometry::GetLocationMatrix (  )  [virtual]

Retrieves the position and orientation of the geometry as a 4x4 transformation matrix.

const palMatrix4x4 & palGeometry::GetOffsetMatrix (  )  [virtual]

Retrieves the position and orientation of the geometry, relative to the attached body as a 4x4 transformation matrix.


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