SO3::SBody Class Reference

#include <SO3Body.h>

List of all members.

Public Member Functions

 SBody (SNode *node, SShape *shape)
 ~SBody ()
void BodyAddForceCallback (OgreNewt::Body *body, float timeStep, int threadIndex)
bool BodyBuoyancyCallback (int colID, OgreNewt::Body *me, const Ogre::Quaternion &orient, const Ogre::Vector3 &pos, Ogre::Plane &plane)
OgreNewt::Body * getOgreNewtBodyPointer ()
Ogre::Real GetMass ()
bool GetFreezeState ()
Ogre::Vector3 GetCenterOfMass ()
Ogre::Vector3 GetForce ()
Ogre::Vector3 GetTorque ()
Ogre::Vector3 GetLocalForce ()
Ogre::Vector3 GetGlobalForce ()
Ogre::Vector3 GetGlobalLocationForce ()
Ogre::Vector3 GetLocalLocationForce ()
void SetMass (Ogre::Real mMass)
void SetMassMatrix (Ogre::Real mass, Ogre::Vector3 inertial)
void SetMaterialID (OgreNewt::MaterialID *mMatID)
const OgreNewt::MaterialID * GetMaterialID ()
void SetFreezeState (bool state)
void SetForce (Ogre::Vector3 mForce)
void SetTorque (Ogre::Vector3 mTorque)
void SetOmega (Ogre::Vector3 omega)
Ogre::Vector3 GetOmega ()
void SetConstantForce (Ogre::Vector3 mForce)
void SetConstantTorque (Ogre::Vector3 mTorque)
void AddConstantForce (Ogre::Vector3 mForce)
void AddConstantTorque (Ogre::Vector3 mTorque)
Ogre::Vector3 GetConstantForce ()
Ogre::Vector3 GetConstantTorque ()
void SetLocalForce (Ogre::Vector3 mLocalForce)
void SetGlobalForce (Ogre::Vector3 mGlobalForce)
void SetGlobalLocationForce (Ogre::Vector3 mGlobalLocationForce)
void SetLocalLocationForce (Ogre::Vector3 mLocalLocationForce)
void SetBuoyancyForce (SBody *fluidBody)
void SetPositionOrientation (Ogre::Vector3 mDerivedPos, Ogre::Quaternion mDerivedOrientation)
void UpdatePositionOrientation ()
void SetMatrix (Ogre::Vector3 mDerivedPos, Ogre::Quaternion mDerivedOrientation)
void SetVelocity (Ogre::Vector3 velocity)
Ogre::Vector3 GetVelocity ()
void UpdateMatrix ()
void AddImpulse (Ogre::Vector3 delta, Ogre::Vector3 pos)
void SetUpJoint (Ogre::Vector3 vec)
void RemoveUpJoint ()
void SetAngularDamping (Ogre::Vector3 vec)
Ogre::Vector3 GetAngularDamping ()
void SetCenterOfMass (Ogre::Vector3 vec)
void SetLinearDamping (Ogre::Real ang)
Ogre::Real GetLinearDamping ()
void SetAutoSleep (bool enable)
bool GetAutoSleep ()
void SetContinuousCollisionMode (bool enable)
bool GetContinuousCollisionMode ()
void GetInvMass (Ogre::Real &mass, Ogre::Vector3 &inertia)
void GetMassMatrix (Ogre::Real &mass, Ogre::Vector3 &inertia)
bool GetSleepState ()
void GetPositionOrientation (Ogre::Vector3 &pos, Ogre::Quaternion &orient)
void SetType (int value)
int GetType ()
SNodeGetParentNode ()

Protected Attributes

OgreNewt::Body * O3Body
SShapemShape
SNodemNode
SScenemScene
Ogre::Real mMass
Ogre::Vector3 force
Ogre::Vector3 torque
Ogre::Vector3 constantForce
Ogre::Vector3 constantTorque
Ogre::Vector3 localForce
Ogre::Vector3 globalForce
Ogre::Vector3 globalLocationForce
Ogre::Vector3 localLocationForce

Detailed Description

Definition at line 42 of file SO3Body.h.


Constructor & Destructor Documentation

SBody::SBody ( SNode node,
SShape shape 
)

Definition at line 20 of file SO3Body.cpp.

SBody::~SBody (  ) 

Definition at line 66 of file SO3Body.cpp.


Member Function Documentation

void SBody::AddConstantForce ( Ogre::Vector3  mForce  ) 

Definition at line 250 of file SO3Body.cpp.

void SBody::AddConstantTorque ( Ogre::Vector3  mTorque  ) 

Definition at line 255 of file SO3Body.cpp.

void SBody::AddImpulse ( Ogre::Vector3  delta,
Ogre::Vector3  pos 
)

Definition at line 322 of file SO3Body.cpp.

void SBody::BodyAddForceCallback ( OgreNewt::Body *  body,
float  timeStep,
int  threadIndex 
)

Definition at line 95 of file SO3Body.cpp.

bool SO3::SBody::BodyBuoyancyCallback ( int  colID,
OgreNewt::Body *  me,
const Ogre::Quaternion &  orient,
const Ogre::Vector3 &  pos,
Ogre::Plane &  plane 
)
Ogre::Vector3 SBody::GetAngularDamping (  ) 

Definition at line 348 of file SO3Body.cpp.

bool SBody::GetAutoSleep (  ) 

Definition at line 378 of file SO3Body.cpp.

Ogre::Vector3 SBody::GetCenterOfMass (  ) 

Definition at line 358 of file SO3Body.cpp.

Ogre::Vector3 SBody::GetConstantForce (  ) 

Definition at line 260 of file SO3Body.cpp.

Ogre::Vector3 SBody::GetConstantTorque (  ) 

Definition at line 265 of file SO3Body.cpp.

bool SBody::GetContinuousCollisionMode (  ) 

Definition at line 388 of file SO3Body.cpp.

Ogre::Vector3 SBody::GetForce (  ) 

Definition at line 155 of file SO3Body.cpp.

bool SBody::GetFreezeState (  ) 

Definition at line 150 of file SO3Body.cpp.

Ogre::Vector3 SBody::GetGlobalForce (  ) 

Definition at line 170 of file SO3Body.cpp.

Ogre::Vector3 SBody::GetGlobalLocationForce (  ) 

Definition at line 175 of file SO3Body.cpp.

void SBody::GetInvMass ( Ogre::Real &  mass,
Ogre::Vector3 &  inertia 
)

Definition at line 393 of file SO3Body.cpp.

Ogre::Real SBody::GetLinearDamping (  ) 

Definition at line 368 of file SO3Body.cpp.

Ogre::Vector3 SBody::GetLocalForce (  ) 

Definition at line 165 of file SO3Body.cpp.

Ogre::Vector3 SBody::GetLocalLocationForce (  ) 

Definition at line 180 of file SO3Body.cpp.

Ogre::Real SBody::GetMass (  ) 

Definition at line 145 of file SO3Body.cpp.

void SBody::GetMassMatrix ( Ogre::Real &  mass,
Ogre::Vector3 &  inertia 
)

Definition at line 398 of file SO3Body.cpp.

const OgreNewt::MaterialID * SBody::GetMaterialID (  ) 

Definition at line 203 of file SO3Body.cpp.

OgreNewt::Body * SBody::getOgreNewtBodyPointer (  ) 

Definition at line 140 of file SO3Body.cpp.

Ogre::Vector3 SBody::GetOmega (  ) 

Definition at line 235 of file SO3Body.cpp.

SNode * SBody::GetParentNode (  ) 

Definition at line 327 of file SO3Body.cpp.

void SBody::GetPositionOrientation ( Ogre::Vector3 &  pos,
Ogre::Quaternion &  orient 
)

Definition at line 409 of file SO3Body.cpp.

bool SBody::GetSleepState (  ) 

Definition at line 403 of file SO3Body.cpp.

Ogre::Vector3 SBody::GetTorque (  ) 

Definition at line 160 of file SO3Body.cpp.

int SBody::GetType (  ) 

Definition at line 419 of file SO3Body.cpp.

Ogre::Vector3 SBody::GetVelocity (  ) 

Definition at line 312 of file SO3Body.cpp.

void SBody::RemoveUpJoint (  ) 

Definition at line 338 of file SO3Body.cpp.

void SBody::SetAngularDamping ( Ogre::Vector3  vec  ) 

Definition at line 343 of file SO3Body.cpp.

void SBody::SetAutoSleep ( bool  enable  ) 

Definition at line 373 of file SO3Body.cpp.

void SO3::SBody::SetBuoyancyForce ( SBody fluidBody  ) 
void SBody::SetCenterOfMass ( Ogre::Vector3  vec  ) 

Definition at line 353 of file SO3Body.cpp.

void SBody::SetConstantForce ( Ogre::Vector3  mForce  ) 

Definition at line 240 of file SO3Body.cpp.

void SBody::SetConstantTorque ( Ogre::Vector3  mTorque  ) 

Definition at line 245 of file SO3Body.cpp.

void SBody::SetContinuousCollisionMode ( bool  enable  ) 

Definition at line 383 of file SO3Body.cpp.

void SBody::SetForce ( Ogre::Vector3  mForce  ) 

Definition at line 220 of file SO3Body.cpp.

void SBody::SetFreezeState ( bool  state  ) 

Definition at line 208 of file SO3Body.cpp.

void SBody::SetGlobalForce ( Ogre::Vector3  mGlobalForce  ) 

Definition at line 275 of file SO3Body.cpp.

void SBody::SetGlobalLocationForce ( Ogre::Vector3  mGlobalLocationForce  ) 

Definition at line 280 of file SO3Body.cpp.

void SBody::SetLinearDamping ( Ogre::Real  ang  ) 

Definition at line 363 of file SO3Body.cpp.

void SBody::SetLocalForce ( Ogre::Vector3  mLocalForce  ) 

Definition at line 270 of file SO3Body.cpp.

void SBody::SetLocalLocationForce ( Ogre::Vector3  mLocalLocationForce  ) 

Definition at line 285 of file SO3Body.cpp.

void SBody::SetMass ( Ogre::Real  mMass  ) 

Definition at line 185 of file SO3Body.cpp.

void SBody::SetMassMatrix ( Ogre::Real  mass,
Ogre::Vector3  inertial 
)

Definition at line 191 of file SO3Body.cpp.

void SBody::SetMaterialID ( OgreNewt::MaterialID *  mMatID  ) 

Definition at line 198 of file SO3Body.cpp.

void SBody::SetMatrix ( Ogre::Vector3  mDerivedPos,
Ogre::Quaternion  mDerivedOrientation 
)

Definition at line 300 of file SO3Body.cpp.

void SBody::SetOmega ( Ogre::Vector3  omega  ) 

Definition at line 230 of file SO3Body.cpp.

void SBody::SetPositionOrientation ( Ogre::Vector3  mDerivedPos,
Ogre::Quaternion  mDerivedOrientation 
)

Definition at line 290 of file SO3Body.cpp.

void SBody::SetTorque ( Ogre::Vector3  mTorque  ) 

Definition at line 225 of file SO3Body.cpp.

void SBody::SetType ( int  value  ) 

Definition at line 414 of file SO3Body.cpp.

void SBody::SetUpJoint ( Ogre::Vector3  vec  ) 

Definition at line 332 of file SO3Body.cpp.

void SBody::SetVelocity ( Ogre::Vector3  velocity  ) 

Definition at line 307 of file SO3Body.cpp.

void SBody::UpdateMatrix (  ) 

Definition at line 317 of file SO3Body.cpp.

void SBody::UpdatePositionOrientation (  ) 

Definition at line 295 of file SO3Body.cpp.


Member Data Documentation

Ogre::Vector3 SO3::SBody::constantForce [protected]

Definition at line 52 of file SO3Body.h.

Ogre::Vector3 SO3::SBody::constantTorque [protected]

Definition at line 53 of file SO3Body.h.

Ogre::Vector3 SO3::SBody::force [protected]

Definition at line 50 of file SO3Body.h.

Ogre::Vector3 SO3::SBody::globalForce [protected]

Definition at line 55 of file SO3Body.h.

Ogre::Vector3 SO3::SBody::globalLocationForce [protected]

Definition at line 56 of file SO3Body.h.

Ogre::Vector3 SO3::SBody::localForce [protected]

Definition at line 54 of file SO3Body.h.

Ogre::Vector3 SO3::SBody::localLocationForce [protected]

Definition at line 57 of file SO3Body.h.

Ogre::Real SO3::SBody::mMass [protected]

Definition at line 48 of file SO3Body.h.

SNode* SO3::SBody::mNode [protected]

Definition at line 45 of file SO3Body.h.

SScene* SO3::SBody::mScene [protected]

Definition at line 46 of file SO3Body.h.

SShape* SO3::SBody::mShape [protected]

Definition at line 44 of file SO3Body.h.

OgreNewt::Body* SO3::SBody::O3Body [protected]

Definition at line 43 of file SO3Body.h.

Ogre::Vector3 SO3::SBody::torque [protected]

Definition at line 51 of file SO3Body.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Generated on Mon Oct 31 14:42:35 2011 for SO3Engine by  doxygen 1.6.3