SO3Engine
|
#include <SO3HingeContraint.h>
Public Member Functions | |
SHingeContraint (SScene *scene, SBody *son, SBody *parent=0, Ogre::Vector3 position=Ogre::Vector3::ZERO, Ogre::Vector3 pin=Ogre::Vector3::ZERO, bool useLimits=false) | |
~SHingeContraint () | |
virtual void | SetParentBody (SBody *body) |
virtual void | SetSonBody (SBody *body) |
void | SetLimits (Ogre::Radian maxAngle, Ogre::Radian minAngle) |
void | UseLimits (bool state) |
Ogre::Radian | GetAngle () |
Ogre::Radian | GetAngularVelocity () |
Ogre::Vector3 | GetForce () |
Ogre::Vector3 | GetPin () |
void | SetMotorOmega (Ogre::Radian omega, Ogre::Real strength=0.5f) |
void | SetMotorAngle (Ogre::Radian angle, Ogre::Real minFriction=0, Ogre::Real maxFriction=0) |
void | SetTorque (Ogre::Real torque) |
void | SetBrake (Ogre::Real maxForce=0) |
void | UseMotor (bool state) |
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 SO3HingeContraint.h.
Constructor & Destructor Documentation
◆ SHingeContraint()
SHingeContraint::SHingeContraint | ( | SScene * | scene, |
SBody * | son, | ||
SBody * | parent = 0 , |
||
Ogre::Vector3 | position = Ogre::Vector3::ZERO , |
||
Ogre::Vector3 | pin = Ogre::Vector3::ZERO , |
||
bool | useLimits = false |
||
) |
Definition at line 19 of file SO3HingeContraint.cpp.
◆ ~SHingeContraint()
SHingeContraint::~SHingeContraint | ( | ) |
Definition at line 29 of file SO3HingeContraint.cpp.
Member Function Documentation
◆ GetAngle()
Ogre::Radian SHingeContraint::GetAngle | ( | ) |
Definition at line 78 of file SO3HingeContraint.cpp.
◆ GetAngularVelocity()
Ogre::Radian SHingeContraint::GetAngularVelocity | ( | ) |
Definition at line 86 of file SO3HingeContraint.cpp.
◆ GetForce()
Ogre::Vector3 SHingeContraint::GetForce | ( | ) |
Definition at line 94 of file SO3HingeContraint.cpp.
◆ GetPin()
Ogre::Vector3 SHingeContraint::GetPin | ( | ) |
Definition at line 102 of file SO3HingeContraint.cpp.
◆ SetBrake()
void SHingeContraint::SetBrake | ( | Ogre::Real | maxForce = 0 | ) |
Definition at line 128 of file SO3HingeContraint.cpp.
◆ SetLimits()
void SHingeContraint::SetLimits | ( | Ogre::Radian | maxAngle, |
Ogre::Radian | minAngle | ||
) |
Definition at line 69 of file SO3HingeContraint.cpp.
◆ SetMotorAngle()
void SHingeContraint::SetMotorAngle | ( | Ogre::Radian | angle, |
Ogre::Real | minFriction = 0 , |
||
Ogre::Real | maxFriction = 0 |
||
) |
Definition at line 116 of file SO3HingeContraint.cpp.
◆ SetMotorOmega()
void SHingeContraint::SetMotorOmega | ( | Ogre::Radian | omega, |
Ogre::Real | strength = 0.5f |
||
) |
Definition at line 110 of file SO3HingeContraint.cpp.
◆ SetParentBody()
|
virtual |
Implements SO3::SPhysicContraint.
Definition at line 34 of file SO3HingeContraint.cpp.
◆ SetSonBody()
|
virtual |
Implements SO3::SPhysicContraint.
Definition at line 41 of file SO3HingeContraint.cpp.
◆ SetTorque()
void SHingeContraint::SetTorque | ( | Ogre::Real | torque | ) |
Definition at line 122 of file SO3HingeContraint.cpp.
◆ UseLimits()
void SHingeContraint::UseLimits | ( | bool | state | ) |
Definition at line 62 of file SO3HingeContraint.cpp.
◆ UseMotor()
void SHingeContraint::UseMotor | ( | bool | state | ) |
Definition at line 134 of file SO3HingeContraint.cpp.
The documentation for this class was generated from the following files:
- include/SO3PhysicGraph/SO3HingeContraint.h
- src/SO3PhysicGraph/SO3HingeContraint.cpp
Generated by 1.9.8