SO3Engine
Public Member Functions | Protected Attributes | List of all members
OgreNewt::OgCustomJoint Class Reference

#include <OgreNewt_Joint.h>

Inheritance diagram for OgreNewt::OgCustomJoint:
OgreNewt::Joint OgreNewt::PrebuiltCustomJoints::Custom2DJoint OgreNewt::PrebuiltCustomJoints::CustomRigidJoint

Public Member Functions

 OgCustomJoint (unsigned int maxDOF, const OgreNewt::Body *child, const OgreNewt::Body *parent)
 
virtual ~OgCustomJoint ()
 
void pinAndDirToLocal (const Ogre::Vector3 &pinpt, const Ogre::Vector3 &pindir, Ogre::Quaternion &localOrient0, Ogre::Vector3 &localPos0, Ogre::Quaternion &localOrient1, Ogre::Vector3 &localPos1) const
 
void localToGlobal (const Ogre::Quaternion &localOrient, const Ogre::Vector3 &localPos, Ogre::Quaternion &globalOrient, Ogre::Vector3 &globalPos, int bodyIndex) const
 
void localToGlobalVisual (const Ogre::Quaternion &localOrient, const Ogre::Vector3 &localPos, Ogre::Quaternion &globalOrient, Ogre::Vector3 &globalPos, int bodyIndex) const
 
void globalToLocal (const Ogre::Quaternion &globalOrient, const Ogre::Vector3 &globalPos, Ogre::Quaternion &localOrient, Ogre::Vector3 &localPos, int bodyIndex) const
 
Ogre::Quaternion grammSchmidt (const Ogre::Vector3 &pin) const
 
- Public Member Functions inherited from OgreNewt::Joint
 Joint ()
 constructor
 
virtual ~Joint ()
 destructor
 
BodygetBody0 () const
 get the pointer to the first rigid body
 
BodygetBody1 () const
 get the pointer to the first rigid body
 
const OgreNewt::WorldgetWorld ()
 get the pointer to the world
 
virtual void submitConstraint (Ogre::Real timeStep, int threadIndex)
 must be define for a functioning joint.
 
virtual void showDebugData (Ogre::SceneNode *debugRootNode)
 show joint visual debugging data
 
int getCollisionState () const
 returns collision state
 
void setCollisionState (int state) const
 sets the collision state
 
Ogre::Real getStiffness () const
 get joint stiffness
 
void setStiffness (Ogre::Real stiffness) const
 set joint stiffness
 

Protected Attributes

unsigned int m_maxDOF
 
const OgreNewt::Bodym_body0
 
const OgreNewt::Bodym_body1
 
- Protected Attributes inherited from OgreNewt::Joint
CustomJoint * m_joint
 

Additional Inherited Members

- Protected Member Functions inherited from OgreNewt::Joint
void addLinearRow (const Ogre::Vector3 &pt0, const Ogre::Vector3 &pt1, const Ogre::Vector3 &dir) const
 
void addAngularRow (Ogre::Radian relativeAngleError, const Ogre::Vector3 &dir) const
 
void addGeneralRow (const Ogre::Vector3 &linear0, const Ogre::Vector3 &angular0, const Ogre::Vector3 &linear1, const Ogre::Vector3 &angular1) const
 
void setRowMinimumFriction (Ogre::Real friction) const
 
void setRowMaximumFriction (Ogre::Real friction) const
 
void setRowStiffness (Ogre::Real stiffness) const
 
void setRowAcceleration (Ogre::Real accel) const
 
void setRowSpringDamper (Ogre::Real springK, Ogre::Real springD) const
 
void SetSupportJoint (CustomJoint *supportJoint)
 SetSupportJoint.
 
CustomJoint * GetSupportJoint () const
 GetSupportJoint.
 
- Static Protected Member Functions inherited from OgreNewt::Joint
static void _CDECL destructorCallback (const CustomJoint *me)
 joint destructor callback glue
 
static void _CDECL submitConstraintCallback (const CustomJoint *me, dFloat timestep, int threadIndex)
 submintContraint
 

Detailed Description

Definition at line 133 of file OgreNewt_Joint.h.

Constructor & Destructor Documentation

◆ OgCustomJoint()

OgreNewt::OgCustomJoint::OgCustomJoint ( unsigned int  maxDOF,
const OgreNewt::Body child,
const OgreNewt::Body parent 
)

Definition at line 181 of file OgreNewt_Joint.cpp.

◆ ~OgCustomJoint()

OgreNewt::OgCustomJoint::~OgCustomJoint ( )
virtual

Definition at line 194 of file OgreNewt_Joint.cpp.

Member Function Documentation

◆ globalToLocal()

void OgreNewt::OgCustomJoint::globalToLocal ( const Ogre::Quaternion &  globalOrient,
const Ogre::Vector3 &  globalPos,
Ogre::Quaternion &  localOrient,
Ogre::Vector3 &  localPos,
int  bodyIndex 
) const

Definition at line 272 of file OgreNewt_Joint.cpp.

◆ grammSchmidt()

Ogre::Quaternion OgreNewt::OgCustomJoint::grammSchmidt ( const Ogre::Vector3 &  pin) const

Definition at line 295 of file OgreNewt_Joint.cpp.

◆ localToGlobal()

void OgreNewt::OgCustomJoint::localToGlobal ( const Ogre::Quaternion &  localOrient,
const Ogre::Vector3 &  localPos,
Ogre::Quaternion &  globalOrient,
Ogre::Vector3 &  globalPos,
int  bodyIndex 
) const

Definition at line 226 of file OgreNewt_Joint.cpp.

◆ localToGlobalVisual()

void OgreNewt::OgCustomJoint::localToGlobalVisual ( const Ogre::Quaternion &  localOrient,
const Ogre::Vector3 &  localPos,
Ogre::Quaternion &  globalOrient,
Ogre::Vector3 &  globalPos,
int  bodyIndex 
) const

Definition at line 249 of file OgreNewt_Joint.cpp.

◆ pinAndDirToLocal()

void OgreNewt::OgCustomJoint::pinAndDirToLocal ( const Ogre::Vector3 &  pinpt,
const Ogre::Vector3 &  pindir,
Ogre::Quaternion &  localOrient0,
Ogre::Vector3 &  localPos0,
Ogre::Quaternion &  localOrient1,
Ogre::Vector3 &  localPos1 
) const

Definition at line 198 of file OgreNewt_Joint.cpp.

Member Data Documentation

◆ m_body0

const OgreNewt::Body* OgreNewt::OgCustomJoint::m_body0
protected

Definition at line 148 of file OgreNewt_Joint.h.

◆ m_body1

const OgreNewt::Body* OgreNewt::OgCustomJoint::m_body1
protected

Definition at line 149 of file OgreNewt_Joint.h.

◆ m_maxDOF

unsigned int OgreNewt::OgCustomJoint::m_maxDOF
protected

Definition at line 146 of file OgreNewt_Joint.h.


The documentation for this class was generated from the following files: