SO3Engine
|
#include <SO3BallAndSocketContraint.h>
Public Member Functions | |
SBallAndSocketContraint (SScene *scene, SBody *son, SBody *parent=0, Ogre::Vector3 position=Ogre::Vector3::ZERO, bool useLimits=false) | |
~SBallAndSocketContraint () | |
virtual void | SetParentBody (SBody *body) |
virtual void | SetSonBody (SBody *body) |
void | SetLimits (Ogre::Radian maxCone, Ogre::Radian minTwist, Ogre::Radian maxTwist) |
void | UseLimits (bool state) |
void | SetControlledState (bool state) |
void | SetAngularVelocity (Ogre::Real omegaMag) |
Ogre::Real | GetAngularVelocity () const |
void | SetPitchAngle (Ogre::Real angle) |
Ogre::Real | GetPitchAngle () const |
void | SetYawAngle (Ogre::Real angle) |
Ogre::Real | GetYawAngle () const |
void | SetRollAngle (Ogre::Real angle) |
Ogre::Real | GetRollAngle () const |
Ogre::Vector3 | GetAngle () |
Ogre::Vector3 | GetOmega () |
Ogre::Vector3 | GetForce () |
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 |
Detailed Description
Definition at line 42 of file SO3BallAndSocketContraint.h.
Constructor & Destructor Documentation
◆ SBallAndSocketContraint()
SBallAndSocketContraint::SBallAndSocketContraint | ( | SScene * | scene, |
SBody * | son, | ||
SBody * | parent = 0 , |
||
Ogre::Vector3 | position = Ogre::Vector3::ZERO , |
||
bool | useLimits = false |
||
) |
Definition at line 19 of file SO3BallAndSocketContraint.cpp.
◆ ~SBallAndSocketContraint()
SBallAndSocketContraint::~SBallAndSocketContraint | ( | ) |
Definition at line 31 of file SO3BallAndSocketContraint.cpp.
Member Function Documentation
◆ GetAngle()
Ogre::Vector3 SBallAndSocketContraint::GetAngle | ( | ) |
Definition at line 174 of file SO3BallAndSocketContraint.cpp.
◆ GetAngularVelocity()
Ogre::Real SBallAndSocketContraint::GetAngularVelocity | ( | ) | const |
Definition at line 58 of file SO3BallAndSocketContraint.cpp.
◆ GetForce()
Ogre::Vector3 SBallAndSocketContraint::GetForce | ( | ) |
Definition at line 198 of file SO3BallAndSocketContraint.cpp.
◆ GetOmega()
Ogre::Vector3 SBallAndSocketContraint::GetOmega | ( | ) |
Definition at line 186 of file SO3BallAndSocketContraint.cpp.
◆ GetPitchAngle()
Ogre::Real SBallAndSocketContraint::GetPitchAngle | ( | ) | const |
Definition at line 76 of file SO3BallAndSocketContraint.cpp.
◆ GetRollAngle()
Ogre::Real SBallAndSocketContraint::GetRollAngle | ( | ) | const |
Definition at line 112 of file SO3BallAndSocketContraint.cpp.
◆ GetYawAngle()
Ogre::Real SBallAndSocketContraint::GetYawAngle | ( | ) | const |
Definition at line 94 of file SO3BallAndSocketContraint.cpp.
◆ SetAngularVelocity()
void SBallAndSocketContraint::SetAngularVelocity | ( | Ogre::Real | omegaMag | ) |
Definition at line 50 of file SO3BallAndSocketContraint.cpp.
◆ SetControlledState()
void SBallAndSocketContraint::SetControlledState | ( | bool | state | ) |
Definition at line 155 of file SO3BallAndSocketContraint.cpp.
◆ SetLimits()
void SBallAndSocketContraint::SetLimits | ( | Ogre::Radian | maxCone, |
Ogre::Radian | minTwist, | ||
Ogre::Radian | maxTwist | ||
) |
Definition at line 164 of file SO3BallAndSocketContraint.cpp.
◆ SetParentBody()
|
virtual |
Implements SO3::SPhysicContraint.
Definition at line 36 of file SO3BallAndSocketContraint.cpp.
◆ SetPitchAngle()
void SBallAndSocketContraint::SetPitchAngle | ( | Ogre::Real | angle | ) |
Definition at line 68 of file SO3BallAndSocketContraint.cpp.
◆ SetRollAngle()
void SBallAndSocketContraint::SetRollAngle | ( | Ogre::Real | angle | ) |
Definition at line 104 of file SO3BallAndSocketContraint.cpp.
◆ SetSonBody()
|
virtual |
Implements SO3::SPhysicContraint.
Definition at line 43 of file SO3BallAndSocketContraint.cpp.
◆ SetYawAngle()
void SBallAndSocketContraint::SetYawAngle | ( | Ogre::Real | angle | ) |
Definition at line 86 of file SO3BallAndSocketContraint.cpp.
◆ UseLimits()
void SBallAndSocketContraint::UseLimits | ( | bool | state | ) |
Definition at line 146 of file SO3BallAndSocketContraint.cpp.
The documentation for this class was generated from the following files:
- include/SO3PhysicGraph/SO3BallAndSocketContraint.h
- src/SO3PhysicGraph/SO3BallAndSocketContraint.cpp
Generated by 1.9.8