SO3Engine
|
SO3HingeContraint.cpp
Go to the documentation of this file.
14 SHingeContraint::SHingeContraint() : SPhysicContraint(0, 0, 0, SPhysicContraint::SO3_HINGE_CONTRAINT)
19SHingeContraint::SHingeContraint(SScene* scene, SBody* son, SBody* parent, Ogre::Vector3 position, Ogre::Vector3 pin, bool useLimits) : SPhysicContraint(scene, son, parent, SPhysicContraint::SO3_HINGE_CONTRAINT)
56 mJoint = static_cast<OgreNewt::Joint*> (new OgreNewt::Hinge(mSonBody->getOgreNewtBodyPointer(), bparent, mPosition, mPin));
116void SHingeContraint::SetMotorAngle(Ogre::Radian angle, Ogre::Real minFriction, Ogre::Real maxFriction)
void waitForUpdateToFinish() const
Definition OgreNewt_World.h:361
Definition SO3Body.h:43
OgreNewt::Body * getOgreNewtBodyPointer()
Definition SO3Body.cpp:340
void SetMotorOmega(Ogre::Radian omega, Ogre::Real strength=0.5f)
Definition SO3HingeContraint.cpp:110
void SetMotorAngle(Ogre::Radian angle, Ogre::Real minFriction=0, Ogre::Real maxFriction=0)
Definition SO3HingeContraint.cpp:116
virtual void SetParentBody(SBody *body)
Definition SO3HingeContraint.cpp:34
void SetTorque(Ogre::Real torque)
Definition SO3HingeContraint.cpp:122
Ogre::Radian GetAngularVelocity()
Definition SO3HingeContraint.cpp:86
void SetBrake(Ogre::Real maxForce=0)
Definition SO3HingeContraint.cpp:128
void SetLimits(Ogre::Radian maxAngle, Ogre::Radian minAngle)
Definition SO3HingeContraint.cpp:69
virtual void SetSonBody(SBody *body)
Definition SO3HingeContraint.cpp:41
Definition SO3PhysicContraint.h:42
Definition SO3Scene.h:125
Manage Physics Contraint. .
Definition SO3DataScol.h:38
Generated by 1.9.8