Project

General

Profile

SO3Engine
OgreNewt::UpVector Class Reference

UpVector joint. More...

#include <OgreNewt_BasicJoints.h>

Inheritance diagram for OgreNewt::UpVector:
OgreNewt::Joint OgreNewt::Joint

Public Member Functions

 UpVector (const Body *body, const Ogre::Vector3 &pin)
 constructor
 
 ~UpVector ()
 destructor
 
void setPin (const Ogre::Vector3 &pin)
 set the pin direction.
 
const Ogre::Vector3 & getPin () const
 get the current pin direction.
 
 UpVector (const World *world, const Body *body, const Ogre::Vector3 &pin)
 constructor
 
 ~UpVector ()
 destructor
 
void setPin (const Ogre::Vector3 &pin) const
 set the pin direction.
 
Ogre::Vector3 getPin () const
 get the current pin direction.
 
- 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
 

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
 
- Protected Attributes inherited from OgreNewt::Joint
CustomJoint * m_joint
 

Detailed Description

UpVector joint.

simple upvector joint. upvectors remove all rotation except for a single pin. useful for character controllers, etc.

Definition at line 297 of file OgreNewt_BasicJoints.h.

Constructor & Destructor Documentation

◆ UpVector() [1/2]

OgreNewt::UpVector::UpVector ( const Body body,
const Ogre::Vector3 &  pin 
)

constructor

Definition at line 756 of file OgreNewt_BasicJoints.cpp.

◆ ~UpVector() [1/2]

OgreNewt::UpVector::~UpVector ( )

destructor

Definition at line 763 of file OgreNewt_BasicJoints.cpp.

◆ UpVector() [2/2]

OgreNewt::UpVector::UpVector ( const World world,
const Body body,
const Ogre::Vector3 &  pin 
)

constructor

Definition at line 1043 of file OgreNewt_BasicJoints.cpp.

◆ ~UpVector() [2/2]

OgreNewt::UpVector::~UpVector ( )

destructor

Member Function Documentation

◆ getPin() [1/2]

Ogre::Vector3 OgreNewt::UpVector::getPin ( ) const

get the current pin direction.

Definition at line 775 of file OgreNewt_BasicJoints.cpp.

◆ getPin() [2/2]

Ogre::Vector3 OgreNewt::UpVector::getPin ( ) const

get the current pin direction.

◆ setPin() [1/2]

void OgreNewt::UpVector::setPin ( const Ogre::Vector3 &  pin)

set the pin direction.

Definition at line 767 of file OgreNewt_BasicJoints.cpp.

◆ setPin() [2/2]

void OgreNewt::UpVector::setPin ( const Ogre::Vector3 &  pin) const
inline

set the pin direction.

Definition at line 460 of file OgreNewt_BasicJoints.h.


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