SO3Engine
|
#include <SO3Body.h>
Public Member Functions | |
SBody (SNode *node, SShape *shape) | |
~SBody () | |
SShape * | GetShape () |
void | BodyAddForceCallback (OgreNewt::Body *body, float timeStep, int threadIndex) |
void | BodyUpdateCallback (OgreNewt::Body *body) |
OgreNewt::Body * | getOgreNewtBodyPointer () |
void | SetFluidState (bool state) |
bool | GetFluidState () |
void | SetFluidVolumeRatio (float waterToVolume) |
void | SetFluidViscosity (float viscosity) |
float | GetFluidWaterToVolumeRatio () |
float | GetFluidViscosity () |
Ogre::Real | GetMass () |
bool | GetFreezeState () |
void | SetGravityEnable (bool state) |
bool | GetGravityEnable () |
Ogre::Vector3 | GetCenterOfMass () |
Ogre::Vector3 | GetForce () |
Ogre::Vector3 | GetTorque () |
Ogre::Vector3 | GetLocalForce () |
Ogre::Vector3 | GetGlobalForce () |
Ogre::Vector3 | GetGlobalLocationForce () |
Ogre::Vector3 | GetLocalLocationForce () |
void | SetMass (const Ogre::Real &mass) |
void | SetMassMatrix (const Ogre::Real &mass, const Ogre::Vector3 &inertial) |
void | SetMaterialID (SMaterialID *matID) |
const std::string | GetMaterialName () |
const OgreNewt::MaterialID * | GetMaterialID () |
const SMaterialID * | GetMaterial () |
void | SetFreezeState (const bool &state) |
void | SetForce (const Ogre::Vector3 &mForce) |
void | SetTorque (const Ogre::Vector3 &mTorque) |
void | SetOmega (const Ogre::Vector3 &omega) |
Ogre::Vector3 | GetOmega () |
void | SetConstantForce (const Ogre::Vector3 &mForce) |
void | SetConstantTorque (const Ogre::Vector3 &mTorque) |
void | AddConstantForce (const Ogre::Vector3 &mForce) |
void | AddConstantTorque (const Ogre::Vector3 &mTorque) |
Ogre::Vector3 | GetConstantForce () |
Ogre::Vector3 | GetConstantTorque () |
void | SetLocalForce (const Ogre::Vector3 &mLocalForce) |
void | SetGlobalForce (const Ogre::Vector3 &mGlobalForce) |
void | SetGlobalLocationForce (const Ogre::Vector3 &mGlobalLocationForce) |
void | SetLocalLocationForce (const Ogre::Vector3 &mLocalLocationForce) |
void | SetBuoyancyForce (SBody *fluidBody) |
void | SetPositionOrientation (const Ogre::Vector3 &mDerivedPos, const Ogre::Quaternion &mDerivedOrientation) |
void | UpdatePositionOrientation () |
void | UpdatePositionOrientation (const Ogre::Vector3 &mDerivedPos, const Ogre::Quaternion &mDerivedOrientation) |
void | SetScale (const Ogre::Vector3 &mDerivedScale) |
void | SetMatrix (const Ogre::Vector3 &mDerivedPos, const Ogre::Quaternion &mDerivedOrientation) |
void | SetVelocity (const Ogre::Vector3 &velocity) |
Ogre::Vector3 | GetVelocity () |
void | UpdateMatrix () |
void | AddImpulse (const Ogre::Vector3 &delta, const Ogre::Vector3 &pos) |
void | SetUpJoint (const Ogre::Vector3 &vec) |
void | RemoveUpJoint () |
void | SetAngularDamping (const Ogre::Vector3 &vec) |
Ogre::Vector3 | GetAngularDamping () |
void | SetCenterOfMass (const Ogre::Vector3 &vec) |
void | SetLinearDamping (const Ogre::Real &ang) |
Ogre::Real | GetLinearDamping () |
void | SetAutoSleep (const bool &enable) |
bool | GetAutoSleep () |
void | EnableSimulation (const bool &enable) |
bool | GetSimulationState () |
void | SetContinuousCollisionMode (const bool &enable) |
bool | GetContinuousCollisionMode () |
void | GetInvMass (Ogre::Real &mass, Ogre::Vector3 &inertia) |
void | GetMassMatrix (Ogre::Real &mass, Ogre::Vector3 &inertia) |
void | MoveToPosition (const Ogre::Vector3 &destPos, const Ogre::Real &stiffness) |
void | RotateToOrientation (const Ogre::Quaternion &destQuat, const Ogre::Real &stiffness) |
bool | GetSleepState () |
void | GetPositionOrientation (Ogre::Vector3 &pos, Ogre::Quaternion &orient) |
void | SetType (const int &value) |
int | GetType () |
void | SetIgnoreCollision (const bool &state) |
bool | GetIgnoreCollision () |
Ogre::Vector3 | CalculateBodyOffset () |
SNode * | GetParentNode () |
void | Reset () |
void | ShowDebug (bool state) |
void | BuoyancyForce (OgreNewt::Body *visitor) |
Protected Attributes | |
OgreNewt::Body * | O3Body |
SShape * | mShape |
SNode * | mNode |
SScene * | mScene |
Ogre::ManualObject * | mDebugBody |
bool | mIgnoreCollision |
bool | mApplyGravity |
bool | HasBuoyancy |
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 |
Ogre::Vector3 | destPosition |
Ogre::Quaternion | destOrientation |
Ogre::Real | moveStiffness |
Ogre::Real | rotateStiffness |
Ogre::Real | mFluidWaterToVolume |
Ogre::Real | mFluidViscosity |
bool | isFluid |
bool | haveToMove |
bool | haveToRotate |
SMaterialID * | materialId |
bool | mEnable |
Definition at line 23 of file SO3Body.cpp.
SBody::~SBody | ( | ) |
Definition at line 84 of file SO3Body.cpp.
void SBody::AddConstantForce | ( | const Ogre::Vector3 & | mForce | ) |
Definition at line 552 of file SO3Body.cpp.
void SBody::AddConstantTorque | ( | const Ogre::Vector3 & | mTorque | ) |
Definition at line 557 of file SO3Body.cpp.
void SBody::AddImpulse | ( | const Ogre::Vector3 & | delta, |
const Ogre::Vector3 & | pos | ||
) |
Definition at line 644 of file SO3Body.cpp.
void SBody::BodyAddForceCallback | ( | OgreNewt::Body * | body, |
float | timeStep, | ||
int | threadIndex | ||
) |
Definition at line 208 of file SO3Body.cpp.
void SBody::BodyUpdateCallback | ( | OgreNewt::Body * | body | ) |
Definition at line 166 of file SO3Body.cpp.
void SBody::BuoyancyForce | ( | OgreNewt::Body * | visitor | ) |
Definition at line 267 of file SO3Body.cpp.
Ogre::Vector3 SBody::CalculateBodyOffset | ( | ) |
Definition at line 111 of file SO3Body.cpp.
void SBody::EnableSimulation | ( | const bool & | enable | ) |
Definition at line 706 of file SO3Body.cpp.
Ogre::Vector3 SBody::GetAngularDamping | ( | ) |
Definition at line 670 of file SO3Body.cpp.
bool SBody::GetAutoSleep | ( | ) |
Definition at line 701 of file SO3Body.cpp.
Ogre::Vector3 SBody::GetCenterOfMass | ( | ) |
Definition at line 680 of file SO3Body.cpp.
Ogre::Vector3 SBody::GetConstantForce | ( | ) |
Definition at line 562 of file SO3Body.cpp.
Ogre::Vector3 SBody::GetConstantTorque | ( | ) |
Definition at line 567 of file SO3Body.cpp.
bool SBody::GetContinuousCollisionMode | ( | ) |
Definition at line 724 of file SO3Body.cpp.
bool SBody::GetFluidState | ( | ) |
Definition at line 398 of file SO3Body.cpp.
float SBody::GetFluidViscosity | ( | ) |
Definition at line 418 of file SO3Body.cpp.
float SBody::GetFluidWaterToVolumeRatio | ( | ) |
Definition at line 413 of file SO3Body.cpp.
Ogre::Vector3 SBody::GetForce | ( | ) |
Definition at line 443 of file SO3Body.cpp.
bool SBody::GetFreezeState | ( | ) |
Definition at line 428 of file SO3Body.cpp.
Ogre::Vector3 SBody::GetGlobalForce | ( | ) |
Definition at line 458 of file SO3Body.cpp.
Ogre::Vector3 SBody::GetGlobalLocationForce | ( | ) |
Definition at line 463 of file SO3Body.cpp.
bool SBody::GetGravityEnable | ( | ) |
Definition at line 438 of file SO3Body.cpp.
bool SBody::GetIgnoreCollision | ( | ) |
Definition at line 784 of file SO3Body.cpp.
void SBody::GetInvMass | ( | Ogre::Real & | mass, |
Ogre::Vector3 & | inertia | ||
) |
Definition at line 729 of file SO3Body.cpp.
Ogre::Real SBody::GetLinearDamping | ( | ) |
Definition at line 690 of file SO3Body.cpp.
Ogre::Vector3 SBody::GetLocalForce | ( | ) |
Definition at line 453 of file SO3Body.cpp.
Ogre::Vector3 SBody::GetLocalLocationForce | ( | ) |
Definition at line 468 of file SO3Body.cpp.
Ogre::Real SBody::GetMass | ( | ) |
Definition at line 423 of file SO3Body.cpp.
void SBody::GetMassMatrix | ( | Ogre::Real & | mass, |
Ogre::Vector3 & | inertia | ||
) |
Definition at line 734 of file SO3Body.cpp.
const SMaterialID * SBody::GetMaterial | ( | ) |
Definition at line 505 of file SO3Body.cpp.
const OgreNewt::MaterialID * SBody::GetMaterialID | ( | ) |
Definition at line 500 of file SO3Body.cpp.
const std::string SBody::GetMaterialName | ( | ) |
Definition at line 492 of file SO3Body.cpp.
OgreNewt::Body * SBody::getOgreNewtBodyPointer | ( | ) |
Definition at line 340 of file SO3Body.cpp.
Ogre::Vector3 SBody::GetOmega | ( | ) |
Definition at line 537 of file SO3Body.cpp.
SNode * SBody::GetParentNode | ( | ) |
Definition at line 649 of file SO3Body.cpp.
void SBody::GetPositionOrientation | ( | Ogre::Vector3 & | pos, |
Ogre::Quaternion & | orient | ||
) |
Definition at line 761 of file SO3Body.cpp.
SShape * SBody::GetShape | ( | ) |
Definition at line 106 of file SO3Body.cpp.
bool SBody::GetSimulationState | ( | ) |
Definition at line 713 of file SO3Body.cpp.
bool SBody::GetSleepState | ( | ) |
Definition at line 755 of file SO3Body.cpp.
Ogre::Vector3 SBody::GetTorque | ( | ) |
Definition at line 448 of file SO3Body.cpp.
int SBody::GetType | ( | ) |
Definition at line 773 of file SO3Body.cpp.
Ogre::Vector3 SBody::GetVelocity | ( | ) |
Definition at line 634 of file SO3Body.cpp.
void SBody::MoveToPosition | ( | const Ogre::Vector3 & | destPos, |
const Ogre::Real & | stiffness | ||
) |
Definition at line 739 of file SO3Body.cpp.
void SBody::RemoveUpJoint | ( | ) |
Definition at line 660 of file SO3Body.cpp.
void SBody::Reset | ( | ) |
Definition at line 116 of file SO3Body.cpp.
void SBody::RotateToOrientation | ( | const Ogre::Quaternion & | destQuat, |
const Ogre::Real & | stiffness | ||
) |
Definition at line 747 of file SO3Body.cpp.
void SBody::SetAngularDamping | ( | const Ogre::Vector3 & | vec | ) |
Definition at line 665 of file SO3Body.cpp.
void SBody::SetAutoSleep | ( | const bool & | enable | ) |
Definition at line 695 of file SO3Body.cpp.
void SO3::SBody::SetBuoyancyForce | ( | SBody * | fluidBody | ) |
void SBody::SetCenterOfMass | ( | const Ogre::Vector3 & | vec | ) |
Definition at line 675 of file SO3Body.cpp.
void SBody::SetConstantForce | ( | const Ogre::Vector3 & | mForce | ) |
Definition at line 542 of file SO3Body.cpp.
void SBody::SetConstantTorque | ( | const Ogre::Vector3 & | mTorque | ) |
Definition at line 547 of file SO3Body.cpp.
void SBody::SetContinuousCollisionMode | ( | const bool & | enable | ) |
Definition at line 718 of file SO3Body.cpp.
void SBody::SetFluidState | ( | bool | state | ) |
Definition at line 345 of file SO3Body.cpp.
void SBody::SetFluidViscosity | ( | float | viscosity | ) |
Definition at line 408 of file SO3Body.cpp.
void SBody::SetFluidVolumeRatio | ( | float | waterToVolume | ) |
Definition at line 403 of file SO3Body.cpp.
void SBody::SetForce | ( | const Ogre::Vector3 & | mForce | ) |
Definition at line 522 of file SO3Body.cpp.
void SBody::SetFreezeState | ( | const bool & | state | ) |
Definition at line 510 of file SO3Body.cpp.
void SBody::SetGlobalForce | ( | const Ogre::Vector3 & | mGlobalForce | ) |
Definition at line 577 of file SO3Body.cpp.
void SBody::SetGlobalLocationForce | ( | const Ogre::Vector3 & | mGlobalLocationForce | ) |
Definition at line 582 of file SO3Body.cpp.
void SBody::SetGravityEnable | ( | bool | state | ) |
Definition at line 433 of file SO3Body.cpp.
void SBody::SetIgnoreCollision | ( | const bool & | state | ) |
Definition at line 778 of file SO3Body.cpp.
void SBody::SetLinearDamping | ( | const Ogre::Real & | ang | ) |
Definition at line 685 of file SO3Body.cpp.
void SBody::SetLocalForce | ( | const Ogre::Vector3 & | mLocalForce | ) |
Definition at line 572 of file SO3Body.cpp.
void SBody::SetLocalLocationForce | ( | const Ogre::Vector3 & | mLocalLocationForce | ) |
Definition at line 587 of file SO3Body.cpp.
void SBody::SetMass | ( | const Ogre::Real & | mass | ) |
Definition at line 473 of file SO3Body.cpp.
void SBody::SetMassMatrix | ( | const Ogre::Real & | mass, |
const Ogre::Vector3 & | inertial | ||
) |
Definition at line 479 of file SO3Body.cpp.
void SBody::SetMaterialID | ( | SMaterialID * | matID | ) |
Definition at line 485 of file SO3Body.cpp.
void SBody::SetMatrix | ( | const Ogre::Vector3 & | mDerivedPos, |
const Ogre::Quaternion & | mDerivedOrientation | ||
) |
Definition at line 622 of file SO3Body.cpp.
void SBody::SetOmega | ( | const Ogre::Vector3 & | omega | ) |
Definition at line 532 of file SO3Body.cpp.
void SBody::SetPositionOrientation | ( | const Ogre::Vector3 & | mDerivedPos, |
const Ogre::Quaternion & | mDerivedOrientation | ||
) |
Definition at line 592 of file SO3Body.cpp.
void SBody::SetScale | ( | const Ogre::Vector3 & | mDerivedScale | ) |
Definition at line 610 of file SO3Body.cpp.
void SBody::SetTorque | ( | const Ogre::Vector3 & | mTorque | ) |
Definition at line 527 of file SO3Body.cpp.
void SBody::SetType | ( | const int & | value | ) |
Definition at line 767 of file SO3Body.cpp.
void SBody::SetUpJoint | ( | const Ogre::Vector3 & | vec | ) |
Definition at line 654 of file SO3Body.cpp.
void SBody::SetVelocity | ( | const Ogre::Vector3 & | velocity | ) |
Definition at line 629 of file SO3Body.cpp.
void SBody::ShowDebug | ( | bool | state | ) |
Definition at line 812 of file SO3Body.cpp.
void SBody::UpdateMatrix | ( | ) |
Definition at line 639 of file SO3Body.cpp.
void SBody::UpdatePositionOrientation | ( | ) |
Definition at line 598 of file SO3Body.cpp.
void SBody::UpdatePositionOrientation | ( | const Ogre::Vector3 & | mDerivedPos, |
const Ogre::Quaternion & | mDerivedOrientation | ||
) |
Definition at line 604 of file SO3Body.cpp.
|
protected |
|
protected |