#include <palBodyBase.h>
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) |
palGroup palBodyBase::GetGroup | ( | ) | const [virtual] |
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.
pos | A three dimensional vector representing the bodies position |
void * palBodyBase::GetUserData | ( | ) |
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
location | The transformation matrix |
Reimplemented in palBody.
void palBodyBase::SetUserData | ( | void * | dataPtr | ) |
Sets a pointer to a user defined object or value.
dataPtr | the pointer value to set. |