SO3Engine
|
#include <SO3SliderContraint.h>
Public Member Functions | |
SSliderContraint (SScene *scene, SBody *son, SBody *parent=0, Ogre::Vector3 position=Ogre::Vector3::ZERO, Ogre::Vector3 pin=Ogre::Vector3::ZERO, bool useLimits=false, bool useSpring=false) | |
~SSliderContraint () | |
virtual void | SetParentBody (SBody *body) |
virtual void | SetSonBody (SBody *body) |
void | SetLimits (Ogre::Real maxDist, Ogre::Real minDist) |
void | UseLimits (bool state) |
void | UseMotor (bool state) |
void | SetMotorVelocity (Ogre::Real velocity, Ogre::Real strength) |
void | SetSpring (Ogre::Real springStrength, Ogre::Real springDamping) |
void | UseSpring (bool state) |
Ogre::Real | GetVelocity () |
Ogre::Vector3 | GetForce () |
Ogre::Real | GetDistance () |
void | SetFriction (Ogre::Real friction) |
Public Member Functions inherited from SO3::SPhysicContraint | |
SPhysicContraint (SScene *scene, SBody *son, SBody *parent=0, PhysicContraintType type=SO3_NULL_CONTRAINT) | |
virtual | ~SPhysicContraint () |
SBody * | GetParentBody () |
SBody * | GetSonBody () |
SScene * | GetParentScene () |
PhysicContraintType | GetType () |
void | SetCollisionState (bool state) |
bool | GetCollisionState () |
Ogre::Real | GetStiffness () |
void | SetStiffness (Ogre::Real value) |
Additional Inherited Members | |
Public Types inherited from SO3::SPhysicContraint | |
enum | PhysicContraintType { SO3_NULL_CONTRAINT , SO3_BALL_AND_SOCKET_CONTRAINT , SO3_HINGE_CONTRAINT , SO3_SLIDER_CONTRAINT , SO3_VEHICLE_CONTRAINT , SO3_KINEMATIC_CONTROLLER_CONTRAINT } |
Protected Attributes inherited from SO3::SPhysicContraint | |
SBody * | mParentBody |
SBody * | mSonBody |
SScene * | mScene |
OgreNewt::Joint * | mJoint |
PhysicContraintType | mType |
Definition at line 42 of file SO3SliderContraint.h.
SSliderContraint::SSliderContraint | ( | SScene * | scene, |
SBody * | son, | ||
SBody * | parent = 0 , |
||
Ogre::Vector3 | position = Ogre::Vector3::ZERO , |
||
Ogre::Vector3 | pin = Ogre::Vector3::ZERO , |
||
bool | useLimits = false , |
||
bool | useSpring = false |
||
) |
Definition at line 19 of file SO3SliderContraint.cpp.
SSliderContraint::~SSliderContraint | ( | ) |
Definition at line 30 of file SO3SliderContraint.cpp.
Ogre::Real SSliderContraint::GetDistance | ( | ) |
Definition at line 122 of file SO3SliderContraint.cpp.
Ogre::Vector3 SSliderContraint::GetForce | ( | ) |
Definition at line 114 of file SO3SliderContraint.cpp.
Ogre::Real SSliderContraint::GetVelocity | ( | ) |
Definition at line 106 of file SO3SliderContraint.cpp.
void SSliderContraint::SetFriction | ( | Ogre::Real | friction | ) |
Definition at line 130 of file SO3SliderContraint.cpp.
void SSliderContraint::SetLimits | ( | Ogre::Real | maxDist, |
Ogre::Real | minDist | ||
) |
Definition at line 84 of file SO3SliderContraint.cpp.
void SSliderContraint::SetMotorVelocity | ( | Ogre::Real | velocity, |
Ogre::Real | strength | ||
) |
Definition at line 78 of file SO3SliderContraint.cpp.
|
virtual |
Implements SO3::SPhysicContraint.
Definition at line 35 of file SO3SliderContraint.cpp.
|
virtual |
Implements SO3::SPhysicContraint.
Definition at line 42 of file SO3SliderContraint.cpp.
void SSliderContraint::SetSpring | ( | Ogre::Real | springStrength, |
Ogre::Real | springDamping | ||
) |
Definition at line 93 of file SO3SliderContraint.cpp.
void SSliderContraint::UseLimits | ( | bool | state | ) |
Definition at line 64 of file SO3SliderContraint.cpp.
void SSliderContraint::UseMotor | ( | bool | state | ) |
Definition at line 71 of file SO3SliderContraint.cpp.
void SSliderContraint::UseSpring | ( | bool | state | ) |
Definition at line 99 of file SO3SliderContraint.cpp.