SO3Engine
|
OgreNewt_Joint.cpp
Go to the documentation of this file.
34 supportJoint->SetUserSubmintConstraintCallback((JointUserSubmitConstraintCallback) submitConstraintCallback);
84void Joint::addLinearRow( const Ogre::Vector3& pt0, const Ogre::Vector3& pt1, const Ogre::Vector3& dir ) const
94void Joint::addGeneralRow(const Ogre::Vector3& linear0, const Ogre::Vector3& angular0, const Ogre::Vector3& linear1, const Ogre::Vector3& angular1) const
173void _CDECL Joint::submitConstraintCallback( const CustomJoint* me, dFloat timestep, int threadIndex )
181OgCustomJoint::OgCustomJoint( unsigned int maxDOF, const Body* child, const Body* parent ) : Joint()
185 suppportJoint = new CustomUserBlank(maxDOF, child->getNewtonBody(), parent ? parent->getNewtonBody() : NULL);
226void OgCustomJoint::localToGlobal( const Ogre::Quaternion& localOrient, const Ogre::Vector3& localPos, Ogre::Quaternion& globalOrient, Ogre::Vector3& globalPos, int bodyIndex ) const
249void OgCustomJoint::localToGlobalVisual( const Ogre::Quaternion& localOrient, const Ogre::Vector3& localPos, Ogre::Quaternion& globalOrient, Ogre::Vector3& globalPos, int bodyIndex ) const
272void OgCustomJoint::globalToLocal( const Ogre::Quaternion& globalOrient, const Ogre::Vector3& globalPos, Ogre::Quaternion& localOrient, Ogre::Vector3& localPos, int bodyIndex ) const
OgreNewt::World *const getWorld() const
get a pointer to the OgreNewt::World this body belongs to.
Definition OgreNewt_Body.h:136
NewtonBody * getNewtonBody() const
get a pointer to the NewtonBody object
Definition OgreNewt_Body.h:127
void getVisualPositionOrientation(Ogre::Vector3 &pos, Ogre::Quaternion &orient) const
get the node position and orientation in form of an Ogre::Vector(position) and Ogre::Quaternion(orien...
Definition OgreNewt_Body.cpp:448
void getPositionOrientation(Ogre::Vector3 &pos, Ogre::Quaternion &orient) const
get position and orientation in form of an Ogre::Vector(position) and Ogre::Quaternion(orientation)
Definition OgreNewt_Body.cpp:425
void setRowMaximumFriction(Ogre::Real friction) const
Definition OgreNewt_Joint.cpp:122
void addGeneralRow(const Ogre::Vector3 &linear0, const Ogre::Vector3 &angular0, const Ogre::Vector3 &linear1, const Ogre::Vector3 &angular1) const
Definition OgreNewt_Joint.cpp:94
virtual void submitConstraint(Ogre::Real timeStep, int threadIndex)
must be define for a functioning joint.
Definition OgreNewt_Joint.h:50
void setRowAcceleration(Ogre::Real accel) const
Definition OgreNewt_Joint.cpp:128
void setRowMinimumFriction(Ogre::Real friction) const
Definition OgreNewt_Joint.cpp:116
void setRowStiffness(Ogre::Real stiffness) const
Definition OgreNewt_Joint.cpp:133
void addAngularRow(Ogre::Radian relativeAngleError, const Ogre::Vector3 &dir) const
Definition OgreNewt_Joint.cpp:89
void setRowSpringDamper(Ogre::Real springK, Ogre::Real springD) const
Definition OgreNewt_Joint.cpp:138
void addLinearRow(const Ogre::Vector3 &pt0, const Ogre::Vector3 &pt1, const Ogre::Vector3 &dir) const
Definition OgreNewt_Joint.cpp:84
static void _CDECL destructorCallback(const CustomJoint *me)
joint destructor callback glue
Definition OgreNewt_Joint.cpp:164
static void _CDECL submitConstraintCallback(const CustomJoint *me, dFloat timestep, int threadIndex)
submintContraint
Definition OgreNewt_Joint.cpp:173
OgCustomJoint(unsigned int maxDOF, const OgreNewt::Body *child, const OgreNewt::Body *parent)
Definition OgreNewt_Joint.cpp:181
void globalToLocal(const Ogre::Quaternion &globalOrient, const Ogre::Vector3 &globalPos, Ogre::Quaternion &localOrient, Ogre::Vector3 &localPos, int bodyIndex) const
Definition OgreNewt_Joint.cpp:272
void pinAndDirToLocal(const Ogre::Vector3 &pinpt, const Ogre::Vector3 &pindir, Ogre::Quaternion &localOrient0, Ogre::Vector3 &localPos0, Ogre::Quaternion &localOrient1, Ogre::Vector3 &localPos1) const
Definition OgreNewt_Joint.cpp:198
Ogre::Quaternion grammSchmidt(const Ogre::Vector3 &pin) const
Definition OgreNewt_Joint.cpp:295
void localToGlobalVisual(const Ogre::Quaternion &localOrient, const Ogre::Vector3 &localPos, Ogre::Quaternion &globalOrient, Ogre::Vector3 &globalPos, int bodyIndex) const
Definition OgreNewt_Joint.cpp:249
void localToGlobal(const Ogre::Quaternion &localOrient, const Ogre::Vector3 &localPos, Ogre::Quaternion &globalOrient, Ogre::Vector3 &globalPos, int bodyIndex) const
Definition OgreNewt_Joint.cpp:226
Generated by 1.9.8