|
SO3Engine
|
#include <SO3PhysicContraint.h>
Public Types | |
| enum | PhysicContraintType { SO3_NULL_CONTRAINT , SO3_BALL_AND_SOCKET_CONTRAINT , SO3_HINGE_CONTRAINT , SO3_SLIDER_CONTRAINT , SO3_VEHICLE_CONTRAINT , SO3_KINEMATIC_CONTROLLER_CONTRAINT } |
Public Member Functions | |
| SPhysicContraint (SScene *scene, SBody *son, SBody *parent=0, PhysicContraintType type=SO3_NULL_CONTRAINT) | |
| virtual | ~SPhysicContraint () |
| SBody * | GetParentBody () |
| SBody * | GetSonBody () |
| virtual void | SetParentBody (SBody *body)=0 |
| virtual void | SetSonBody (SBody *body)=0 |
| SScene * | GetParentScene () |
| PhysicContraintType | GetType () |
| void | SetCollisionState (bool state) |
| bool | GetCollisionState () |
| Ogre::Real | GetStiffness () |
| void | SetStiffness (Ogre::Real value) |
Protected Attributes | |
| SBody * | mParentBody |
| SBody * | mSonBody |
| SScene * | mScene |
| OgreNewt::Joint * | mJoint |
| PhysicContraintType | mType |
Definition at line 41 of file SO3PhysicContraint.h.
| Enumerator | |
|---|---|
| SO3_NULL_CONTRAINT | |
| SO3_BALL_AND_SOCKET_CONTRAINT | |
| SO3_HINGE_CONTRAINT | |
| SO3_SLIDER_CONTRAINT | |
| SO3_VEHICLE_CONTRAINT | |
| SO3_KINEMATIC_CONTROLLER_CONTRAINT | |
Definition at line 44 of file SO3PhysicContraint.h.
| SPhysicContraint::SPhysicContraint | ( | SScene * | scene, |
| SBody * | son, | ||
| SBody * | parent = 0, |
||
| PhysicContraintType | type = SO3_NULL_CONTRAINT |
||
| ) |
Definition at line 20 of file SO3PhysicContraint.cpp.
|
virtual |
Definition at line 30 of file SO3PhysicContraint.cpp.
| bool SPhysicContraint::GetCollisionState | ( | ) |
Definition at line 75 of file SO3PhysicContraint.cpp.
| SBody * SPhysicContraint::GetParentBody | ( | ) |
Definition at line 39 of file SO3PhysicContraint.cpp.
| SScene * SPhysicContraint::GetParentScene | ( | ) |
Definition at line 59 of file SO3PhysicContraint.cpp.
| SBody * SPhysicContraint::GetSonBody | ( | ) |
Definition at line 44 of file SO3PhysicContraint.cpp.
| Ogre::Real SPhysicContraint::GetStiffness | ( | ) |
Definition at line 83 of file SO3PhysicContraint.cpp.
| SPhysicContraint::PhysicContraintType SPhysicContraint::GetType | ( | ) |
Definition at line 64 of file SO3PhysicContraint.cpp.
| void SPhysicContraint::SetCollisionState | ( | bool | state | ) |
Definition at line 69 of file SO3PhysicContraint.cpp.
|
pure virtual |
Implemented in SO3::SBallAndSocketContraint, SO3::SHingeContraint, SO3::SSliderContraint, and SO3::SVehicleContraint.
Definition at line 49 of file SO3PhysicContraint.cpp.
|
pure virtual |
Implemented in SO3::SBallAndSocketContraint, SO3::SHingeContraint, SO3::SSliderContraint, and SO3::SVehicleContraint.
Definition at line 54 of file SO3PhysicContraint.cpp.
| void SPhysicContraint::SetStiffness | ( | Ogre::Real | value | ) |
Definition at line 91 of file SO3PhysicContraint.cpp.
|
protected |
Definition at line 57 of file SO3PhysicContraint.h.
|
protected |
Definition at line 54 of file SO3PhysicContraint.h.
|
protected |
Definition at line 56 of file SO3PhysicContraint.h.
|
protected |
Definition at line 55 of file SO3PhysicContraint.h.
|
protected |
Definition at line 58 of file SO3PhysicContraint.h.