Class encapsulating a physical body.
|
Public Member Functions |
| Body (const World *world, const char *bodyName=NULL, bool dummy=false) |
| Constructor.
|
virtual | ~Body () |
| Destructor.
|
void | UpdateCoM () |
int | GetNumGeoms () |
Geom ** | GetGeoms () |
void | Enable (bool enable) |
GzPose | GetPose (void) const |
| Get the body pose (global cs).
|
GzVector | GetPosition (void) const |
| Get the body position (global cs).
|
GzQuatern | GetRotation (void) const |
| Get the body rotation (global cs).
|
void | SetPose (GzPose pose) |
| Set the body pose (global cs).
|
void | SetPosition (GzVector pos) |
| Set the body position (global cs).
|
void | SetRotation (GzQuatern rot) |
| Set the body rotation (global cs).
|
GzPose | GetCoMPose (void) const |
GzVector | GetLinearVel (void) const |
GzQuatern | GetAngularVel (void) const |
void | SetLinearVel (GzVector vel) |
| Set the linear velocity (global cs).
|
void | SetAngularVel (GzVector vel) |
| Set the angular velocity (global cs).
|
dBodyID | GetBodyId () const |
dSpaceID | GetSpaceId () const |
void | SetGravityMode (bool enabled) |
| Enable/disable effect of gravity on this body.
|
int | GetGravityMode () |
void | SetFiniteRotationAxis (double x, double y, double z) |
void | SetFiniteRotationMode (int mode) |
void | SetPickId (GLuint id) |
GzVector | GetTorque (void) |
GzVector | GetForce (void) |
| Get the tota force acting on a body.
|
void | SetForce (GzVector f) |
| Set the total force acting on a body.
|
void | SetTorque (double x, double y, double z) |
void | AddForce (double x, double y, double z) |
void | AddTorque (double x, double y, double z) |
void | AddRelForce (double x, double y, double z) |
void | AddRelTorque (double x, double y, double z) |
void | AddForceAtPos (double x, double y, double z, double pos_x, double pos_y, double pos_z) |
void | AddForceAtRelPos (double x, double y, double z, double pos_x, double pos_y, double pos_z) |
void | Render (int pass, RenderOptions *renderOpt) |
Public Attributes |
char * | bodyName |
Protected Attributes |
dWorldID | worldId |
dBodyID | bodyId |
GzPose | dummyPose |
dMass | mass |
Friends |
class | Geom |
class | BaseGeom |
class | Camera |
Class encapsulating a physical body.