Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

RigidAPI Class Reference

API Rigid Body class. More...

#include <S2_api.h>

Inheritance diagram for RigidAPI:

Inheritance graph
[legend]
Collaboration diagram for RigidAPI:

Collaboration graph
[legend]
List of all members.

Public Member Functions

Rigid Body Initialization and Modification Methods.
void SetMass (Real mass)
void SetInertiaTensor (const M3D &Ib)
 3x3 symmetric inertia tensor

void SetInertiaTensor (const V3D &Ib)
 Diagonal inertia tensor.

void SetPos (const P3D &pos)
void SetOrientation (const Quat &ori)
void SetVel (const V3D &vel)
void SetAcc (const V3D &acc)
void SetVelRot (const V3D &omega)
void SetAccRot (const V3D &gamma)
void ApplyForce (const V3D &f, const P3D &pos_local=P3D(0, 0, 0))
void ApplyImpulse (const V3D &j, const P3D &pos_local=P3D(0, 0, 0))

Private Member Functions

 RigidAPI (S2::Object *p_obj)
 ~RigidAPI ()

Friends

class UniverseAPI
 Allows UniverseAPI to create/destroy instances.


Detailed Description

API Rigid Body class.

App-level Rigid Body object interface.


Constructor & Destructor Documentation

RigidAPI::RigidAPI S2::Object *  p_obj  )  [inline, private]
 

RigidAPI::~RigidAPI  )  [inline, private]
 


Member Function Documentation

void RigidAPI::ApplyForce const V3D f,
const P3D pos_local = P3D(0, 0, 0)
 

void RigidAPI::ApplyImpulse const V3D j,
const P3D pos_local = P3D(0, 0, 0)
 

void RigidAPI::SetAcc const V3D acc  ) 
 

void RigidAPI::SetAccRot const V3D gamma  ) 
 

void RigidAPI::SetInertiaTensor const V3D Ib  ) 
 

Diagonal inertia tensor.

void RigidAPI::SetInertiaTensor const M3D Ib  ) 
 

3x3 symmetric inertia tensor

void RigidAPI::SetMass Real  mass  ) 
 

void RigidAPI::SetOrientation const Quat ori  ) 
 

void RigidAPI::SetPos const P3D pos  ) 
 

void RigidAPI::SetVel const V3D vel  ) 
 

void RigidAPI::SetVelRot const V3D omega  ) 
 


Friends And Related Function Documentation

friend class UniverseAPI [friend]
 

Allows UniverseAPI to create/destroy instances.

Reimplemented from ObjectAPI.


The documentation for this class was generated from the following file:
Generated on Tue Aug 10 15:58:31 2004 for Saphyre2 by doxygen 1.3.5