SO3Engine
|
SO3BallAndSocketContraint.cpp
Go to the documentation of this file.
14SBallAndSocketContraint::SBallAndSocketContraint() : SPhysicContraint(0, 0, 0, SPhysicContraint::SO3_BALL_AND_SOCKET_CONTRAINT)
19SBallAndSocketContraint::SBallAndSocketContraint(SScene* scene, SBody* son, SBody* parent, Ogre::Vector3 position, bool useLimits) : SPhysicContraint(scene, son, parent, SPhysicContraint::SO3_BALL_AND_SOCKET_CONTRAINT)
132 mJoint = static_cast<OgreNewt::Joint*> (new OgreNewt::ControlledBallAndSocket(mSonBody->getOgreNewtBodyPointer(), bparent, mPosition));
136 mJoint = static_cast<OgreNewt::Joint*> (new OgreNewt::BallAndSocketLimits(mSonBody->getOgreNewtBodyPointer(), bparent, mPosition));
137 static_cast<OgreNewt::BallAndSocketLimits*>(mJoint)->setLimits(mConeAngle, mMinTwist, mMaxTwist);
141 mJoint = static_cast<OgreNewt::Joint*> (new OgreNewt::BallAndSocket(mSonBody->getOgreNewtBodyPointer(), bparent, mPosition));
164void SBallAndSocketContraint::SetLimits(Ogre::Radian maxCone, Ogre::Radian minTwist, Ogre::Radian maxTwist)
171 static_cast<OgreNewt::BallAndSocketLimits*>(mJoint)->setLimits(mConeAngle, mMinTwist, mMaxTwist);
void waitForUpdateToFinish() const
Definition OgreNewt_World.h:361
void SetControlledState(bool state)
Definition SO3BallAndSocketContraint.cpp:155
Ogre::Vector3 GetForce()
Definition SO3BallAndSocketContraint.cpp:198
Ogre::Real GetYawAngle() const
Definition SO3BallAndSocketContraint.cpp:94
void SetYawAngle(Ogre::Real angle)
Definition SO3BallAndSocketContraint.cpp:86
void UseLimits(bool state)
Definition SO3BallAndSocketContraint.cpp:146
void SetAngularVelocity(Ogre::Real omegaMag)
Definition SO3BallAndSocketContraint.cpp:50
Ogre::Real GetRollAngle() const
Definition SO3BallAndSocketContraint.cpp:112
void SetLimits(Ogre::Radian maxCone, Ogre::Radian minTwist, Ogre::Radian maxTwist)
Definition SO3BallAndSocketContraint.cpp:164
Ogre::Real GetPitchAngle() const
Definition SO3BallAndSocketContraint.cpp:76
void SetPitchAngle(Ogre::Real angle)
Definition SO3BallAndSocketContraint.cpp:68
virtual void SetParentBody(SBody *body)
Definition SO3BallAndSocketContraint.cpp:36
void SetRollAngle(Ogre::Real angle)
Definition SO3BallAndSocketContraint.cpp:104
Ogre::Vector3 GetOmega()
Definition SO3BallAndSocketContraint.cpp:186
~SBallAndSocketContraint()
Definition SO3BallAndSocketContraint.cpp:31
Ogre::Real GetAngularVelocity() const
Definition SO3BallAndSocketContraint.cpp:58
Ogre::Vector3 GetAngle()
Definition SO3BallAndSocketContraint.cpp:174
virtual void SetSonBody(SBody *body)
Definition SO3BallAndSocketContraint.cpp:43
Definition SO3Body.h:43
OgreNewt::Body * getOgreNewtBodyPointer()
Definition SO3Body.cpp:340
Definition SO3PhysicContraint.h:42
Definition SO3Scene.h:125
Manage Physics Contraint. .
Definition SO3DataScol.h:38
Generated by 1.9.8