palBodyBase Class Reference

#include <palBodyBase.h>

Inheritance diagram for palBodyBase:

palBody palBoxBase palCapsuleBase palConvexBase palSphereBase palStatic palBox palCapsule palCompoundBody palConvex palGenericBody palSphere palBox palStaticBox palCapsule palStaticCapsule palConvex palSphere palStaticSphere palStaticBox palStaticCapsule palStaticSphere palTerrain

List of all members.

Public Member Functions

virtual palMatrix4x4 & GetLocationMatrix ()=0
virtual void GetPosition (palVector3 &pos)
virtual void SetMaterial (palMaterial *material)
virtual palGroup GetGroup () const
virtual void SetGroup (palGroup group)
void SetUserData (void *dataPtr)
void * GetUserData ()

Public Attributes

PAL_VECTOR< palGeometry * > m_Geometries
 The geometries which the body is constructed from.
palBaseBodyType m_Type
 The type of body.

Protected Member Functions

virtual void SetPosition (palMatrix4x4 &location)


Detailed Description

The base body class. A body represents a object in the physics engine. A body has location and may have material properties. A body is usually accompanied by a geometry which represents the shape of the body. The base body does not need to have a mass, it can be a static object.

Member Function Documentation

palGroup palBodyBase::GetGroup (  )  const [virtual]

Returns:
the collision group this body belongs to.

virtual palMatrix4x4& palBodyBase::GetLocationMatrix (  )  [pure virtual]

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

Implemented in palOrientatedTerrainPlane.

void palBodyBase::GetPosition ( palVector3 &  pos  )  [virtual]

Retrieves the position of the body as a 3 dimensional vector.

Parameters:
pos A three dimensional vector representing the bodies position

void * palBodyBase::GetUserData (  ) 

Returns:
The user data pointer.

void palBodyBase::SetGroup ( palGroup  group  )  [virtual]

Sets the collision group this body belongs to.

void palBodyBase::SetMaterial ( palMaterial material  )  [virtual]

Sets the material applied to this body. A material pointer can be retrieved using the palMaterials::GetMaterial() method.

void palBodyBase::SetPosition ( palMatrix4x4 &  location  )  [protected, virtual]

Sets the position and orientation of the body via a 4x4 transformation matrix. Optional override implementation for engines that support setting the location matrix for static bodies

Parameters:
location The transformation matrix

Reimplemented in palBody.

void palBodyBase::SetUserData ( void *  dataPtr  ) 

Sets a pointer to a user defined object or value.

Parameters:
dataPtr the pointer value to set.


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