#include <palBodies.h>

Public Member Functions | |
| virtual void | Init (palMatrix4x4 &pos) |
| virtual void | SetDynamicsType (palDynamicsType dynType) |
| virtual void | SetMass (Float mass) |
| virtual void | SetInertia (Float Ixx, Float Iyy, Float Izz) |
| virtual void | ConnectGeometry (palGeometry *pGeom) |
| virtual const PAL_VECTOR < palGeometry * > & | GetGeometries () |
| virtual unsigned int | GetNumGeometries () |
| virtual void | RemoveGeometry (palGeometry *pGeom) |
The constructed body is dynamic by default.
This body is only supported by the most advanced physics engines. (ie: very few) If you are seeking maximum portability avoid using the generic body.
| void palGenericBody::ConnectGeometry | ( | palGeometry * | pGeom | ) | [virtual] |
Connects a constructed geometry to the body (This is similar to the compound body's palCompoundBodyBase::AddGeometry() call, however no finalize is required)
| const PAL_VECTOR< palGeometry * > & palGenericBody::GetGeometries | ( | ) | [virtual] |
Returns the geometries connected to the body
| unsigned int palGenericBody::GetNumGeometries | ( | ) | [virtual] |
Returns the number of geometries connected to the body
| void palGenericBody::Init | ( | palMatrix4x4 & | pos | ) | [virtual] |
Initializes the body
| void palGenericBody::RemoveGeometry | ( | palGeometry * | pGeom | ) | [virtual] |
Removes the geometry connected to the body
| void palGenericBody::SetDynamicsType | ( | palDynamicsType | dynType | ) | [virtual] |
Sets the body to be dynamic, static, or kinematic
| void palGenericBody::SetInertia | ( | Float | Ixx, | |
| Float | Iyy, | |||
| Float | Izz | |||
| ) | [virtual] |
Sets the inertia tensor's principal moments of inertia These are the diagonal elements of the inertia tensor.
| void palGenericBody::SetMass | ( | Float | mass | ) | [virtual] |
Sets the mass of the body (note: results of this function for non-dynamic bodies are undefined)
1.5.7.1