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 |
Detailed Description
Definition at line 41 of file SO3PhysicContraint.h.
Member Enumeration Documentation
◆ PhysicContraintType
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.
Constructor & Destructor Documentation
◆ SPhysicContraint()
SPhysicContraint::SPhysicContraint | ( | SScene * | scene, |
SBody * | son, | ||
SBody * | parent = 0 , |
||
PhysicContraintType | type = SO3_NULL_CONTRAINT |
||
) |
Definition at line 20 of file SO3PhysicContraint.cpp.
◆ ~SPhysicContraint()
|
virtual |
Definition at line 30 of file SO3PhysicContraint.cpp.
Member Function Documentation
◆ GetCollisionState()
bool SPhysicContraint::GetCollisionState | ( | ) |
Definition at line 75 of file SO3PhysicContraint.cpp.
◆ GetParentBody()
SBody * SPhysicContraint::GetParentBody | ( | ) |
Definition at line 39 of file SO3PhysicContraint.cpp.
◆ GetParentScene()
SScene * SPhysicContraint::GetParentScene | ( | ) |
Definition at line 59 of file SO3PhysicContraint.cpp.
◆ GetSonBody()
SBody * SPhysicContraint::GetSonBody | ( | ) |
Definition at line 44 of file SO3PhysicContraint.cpp.
◆ GetStiffness()
Ogre::Real SPhysicContraint::GetStiffness | ( | ) |
Definition at line 83 of file SO3PhysicContraint.cpp.
◆ GetType()
SPhysicContraint::PhysicContraintType SPhysicContraint::GetType | ( | ) |
Definition at line 64 of file SO3PhysicContraint.cpp.
◆ SetCollisionState()
void SPhysicContraint::SetCollisionState | ( | bool | state | ) |
Definition at line 69 of file SO3PhysicContraint.cpp.
◆ SetParentBody()
|
pure virtual |
Implemented in SO3::SBallAndSocketContraint, SO3::SHingeContraint, SO3::SSliderContraint, and SO3::SVehicleContraint.
Definition at line 49 of file SO3PhysicContraint.cpp.
◆ SetSonBody()
|
pure virtual |
Implemented in SO3::SBallAndSocketContraint, SO3::SHingeContraint, SO3::SSliderContraint, and SO3::SVehicleContraint.
Definition at line 54 of file SO3PhysicContraint.cpp.
◆ SetStiffness()
void SPhysicContraint::SetStiffness | ( | Ogre::Real | value | ) |
Definition at line 91 of file SO3PhysicContraint.cpp.
Member Data Documentation
◆ mJoint
|
protected |
Definition at line 57 of file SO3PhysicContraint.h.
◆ mParentBody
|
protected |
Definition at line 54 of file SO3PhysicContraint.h.
◆ mScene
|
protected |
Definition at line 56 of file SO3PhysicContraint.h.
◆ mSonBody
|
protected |
Definition at line 55 of file SO3PhysicContraint.h.
◆ mType
|
protected |
Definition at line 58 of file SO3PhysicContraint.h.
The documentation for this class was generated from the following files:
- include/SO3PhysicGraph/SO3PhysicContraint.h
- src/SO3PhysicGraph/SO3PhysicContraint.cpp
Generated by 1.9.8