SO3Engine
|
Kinematic controller joint. More...
#include <OgreNewt_BasicJoints.h>
Public Member Functions | |
KinematicController (const OgreNewt::Body *child, const Ogre::Vector3 &pos) | |
constructor | |
~KinematicController () | |
destructor. | |
void | setPickingMode (int mode) |
enable limits. | |
void | setMaxLinearFriction (Ogre::Real accel) |
set the linear acceleration the joint can take before the joint is violated . | |
void | setMaxAngularFriction (Ogre::Real alpha) |
set the angular acceleration the joint can take before the joint is violated . | |
void | setTargetPosit (const Ogre::Vector3 &position) |
set the position part of the attachment matrix | |
void | setTargetRotation (const Ogre::Quaternion &rotation) |
set the orientation part of the attachment matrix | |
void | setTargetMatrix (const Ogre::Vector3 &position, const Ogre::Quaternion &rotation) |
set the position and orientation part of the attachment matrix | |
void | getTargetMatrix (Ogre::Vector3 &position, Ogre::Quaternion &rotation) const |
set the position and orientation part of the attachment matrix | |
Public Member Functions inherited from OgreNewt::Joint | |
Joint () | |
constructor | |
virtual | ~Joint () |
destructor | |
Body * | getBody0 () const |
get the pointer to the first rigid body | |
Body * | getBody1 () const |
get the pointer to the first rigid body | |
const OgreNewt::World * | getWorld () |
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 |
Kinematic controller joint.
simple Kinematic controller. used it to make a simple object follow a path or a position.
Definition at line 579 of file OgreNewt_BasicJoints.h.
OgreNewt::KinematicController::KinematicController | ( | const OgreNewt::Body * | child, |
const Ogre::Vector3 & | pos | ||
) |
constructor
child | pointer to the controlled rigid body. |
attachment | point in global space |
Definition at line 781 of file OgreNewt_BasicJoints.cpp.
OgreNewt::KinematicController::~KinematicController | ( | ) |
destructor.
Definition at line 793 of file OgreNewt_BasicJoints.cpp.
void OgreNewt::KinematicController::getTargetMatrix | ( | Ogre::Vector3 & | position, |
Ogre::Quaternion & | rotation | ||
) | const |
set the position and orientation part of the attachment matrix
position | new destination position in global space |
rotation | new destination position in global space |
Definition at line 841 of file OgreNewt_BasicJoints.cpp.
void OgreNewt::KinematicController::setMaxAngularFriction | ( | Ogre::Real | alpha | ) |
set the angular acceleration the joint can take before the joint is violated .
alpha | maximum acceleration at the attachment point |
Definition at line 809 of file OgreNewt_BasicJoints.cpp.
void OgreNewt::KinematicController::setMaxLinearFriction | ( | Ogre::Real | accel | ) |
set the linear acceleration the joint can take before the joint is violated .
accel | maximum acceleration at the attachment point |
Definition at line 803 of file OgreNewt_BasicJoints.cpp.
void OgreNewt::KinematicController::setPickingMode | ( | int | mode | ) |
enable limits.
mode | 1 at like control by position and rotation, 0 control rotation only |
Definition at line 797 of file OgreNewt_BasicJoints.cpp.
void OgreNewt::KinematicController::setTargetMatrix | ( | const Ogre::Vector3 & | position, |
const Ogre::Quaternion & | rotation | ||
) |
set the position and orientation part of the attachment matrix
position | new destination position in global space |
rotation | new destination position in global space |
Definition at line 832 of file OgreNewt_BasicJoints.cpp.
void OgreNewt::KinematicController::setTargetPosit | ( | const Ogre::Vector3 & | position | ) |
set the position part of the attachment matrix
position | new destination position in global space |
Definition at line 816 of file OgreNewt_BasicJoints.cpp.
void OgreNewt::KinematicController::setTargetRotation | ( | const Ogre::Quaternion & | rotation | ) |
set the orientation part of the attachment matrix
rotation | new destination position in global space |
Definition at line 823 of file OgreNewt_BasicJoints.cpp.