#include <OgreRefAppJoint.h>
Inheritance diagram for OgreRefApp::Joint:
Public Types | |
enum | JointType { JT_BALL, JT_SLIDER, JT_HINGE, JT_UNIVERSAL, JT_HINGE2 } |
The type of joint. More... | |
Public Methods | |
Joint (JointType jtype) | |
Constructor, however you should use World::createJoint(type, obj1, obj2). | |
virtual | ~Joint () |
JointType | getType (void) |
Returns the type of this joint. | |
virtual void | setAnchorPosition (const Vector3 &point)=0 |
Set the anchor point of this joint. | |
virtual const Vector3 & | getAnchorPosition (void) |
Gets the anchor position of this joint. | |
virtual const std::pair< ApplicationObject *, ApplicationObject * > & | getAttachments (void) |
Gets the attached objects, a NULL means no object ie a static attachment. | |
virtual void | setAxes (const Vector3 &primaryAxis, const Vector3 &secondaryAxis=Vector3::ZERO)=0 |
Sets the axes for this joint. | |
virtual const std::pair< Vector3, Vector3 > & | getAxes (void) |
Gets the axes of this joint. | |
Protected Methods | |
void | setAttachments (ApplicationObject *obj1, ApplicationObject *obj2) |
Sets the objects attached to this joint. | |
Protected Attributes | |
JointType | mType |
Vector3 | mAnchor |
std::pair< ApplicationObject *, ApplicationObject * > | mAttachedObjects |
std::pair< Vector3, Vector3 > | mAxes |
dJoint * | mOdeJoint |
Definition at line 42 of file OgreRefAppJoint.h.
|
The type of joint.
Definition at line 46 of file OgreRefAppJoint.h. |
|
Constructor, however you should use World::createJoint(type, obj1, obj2).
Definition at line 31 of file OgreRefAppJoint.cpp. References mAxes. |
|
Definition at line 60 of file OgreRefAppJoint.h. |
|
Gets the anchor position of this joint.
Definition at line 46 of file OgreRefAppJoint.cpp. References mAnchor. |
|
Gets the attached objects, a NULL means no object ie a static attachment.
Definition at line 73 of file OgreRefAppJoint.cpp. References mAttachedObjects. |
|
Gets the axes of this joint.
Definition at line 79 of file OgreRefAppJoint.cpp. References mAxes. |
|
Returns the type of this joint.
Definition at line 41 of file OgreRefAppJoint.cpp. References mType. |
|
Set the anchor point of this joint.
Implemented in OgreRefApp::BallJoint, OgreRefApp::SliderJoint, OgreRefApp::HingeJoint, OgreRefApp::UniversalJoint, and OgreRefApp::Hinge2Joint. |
|
Sets the objects attached to this joint.
Definition at line 51 of file OgreRefAppJoint.cpp. References OgreRefApp::ApplicationObject::getOdeBody(), mAttachedObjects, and mOdeJoint. Referenced by OgreRefApp::BallJoint::BallJoint(), OgreRefApp::Hinge2Joint::Hinge2Joint(), OgreRefApp::HingeJoint::HingeJoint(), OgreRefApp::SliderJoint::SliderJoint(), and OgreRefApp::UniversalJoint::UniversalJoint(). |
|
Sets the axes for this joint.
Implemented in OgreRefApp::BallJoint, OgreRefApp::SliderJoint, OgreRefApp::HingeJoint, OgreRefApp::UniversalJoint, and OgreRefApp::Hinge2Joint. |
|
Definition at line 106 of file OgreRefAppJoint.h. Referenced by getAnchorPosition(), OgreRefApp::Hinge2Joint::setAnchorPosition(), OgreRefApp::UniversalJoint::setAnchorPosition(), OgreRefApp::HingeJoint::setAnchorPosition(), and OgreRefApp::BallJoint::setAnchorPosition(). |
|
Definition at line 107 of file OgreRefAppJoint.h. Referenced by getAttachments(), and setAttachments(). |
|
Definition at line 108 of file OgreRefAppJoint.h. Referenced by getAxes(), Joint(), OgreRefApp::Hinge2Joint::setAxes(), OgreRefApp::UniversalJoint::setAxes(), OgreRefApp::HingeJoint::setAxes(), and OgreRefApp::SliderJoint::setAxes(). |
|
Definition at line 111 of file OgreRefAppJoint.h. Referenced by OgreRefApp::BallJoint::BallJoint(), OgreRefApp::Hinge2Joint::Hinge2Joint(), OgreRefApp::HingeJoint::HingeJoint(), setAttachments(), OgreRefApp::SliderJoint::SliderJoint(), and OgreRefApp::UniversalJoint::UniversalJoint(). |
|
Definition at line 105 of file OgreRefAppJoint.h. Referenced by getType(). |
Copyright © 2002-2003 by The OGRE Team
Last modified Sun Nov 28 19:51:58 2004