#include <OgreRefAppJointSubtypes.h>
Inheritance diagram for OgreRefApp::HingeJoint:


Public Types | |
| enum | JointType { JT_BALL, JT_SLIDER, JT_HINGE, JT_UNIVERSAL, JT_HINGE2 } |
| The type of joint. More... | |
Public Methods | |
| HingeJoint (Joint::JointType jtype, ApplicationObject *obj1, ApplicationObject *obj2) | |
| ~HingeJoint () | |
| void | setAnchorPosition (const Vector3 &point) |
| Set the anchor point of this joint. | |
| void | setAxes (const Vector3 &primaryAxis, const Vector3 &secondaryAxis=Vector3::ZERO) |
| Sets the axes for this joint. | |
| JointType | getType (void) |
| Returns the type 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 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 81 of file OgreRefAppJointSubtypes.h.
|
|
The type of joint.
Definition at line 46 of file OgreRefAppJoint.h. |
|
||||||||||||||||
|
Definition at line 64 of file OgreRefAppJointSubtypes.cpp. References OgreRefApp::Joint::mOdeJoint, and OgreRefApp::Joint::setAttachments(). |
|
|
Definition at line 85 of file OgreRefAppJointSubtypes.h. |
|
|
Gets the anchor position of this joint.
Definition at line 46 of file OgreRefAppJoint.cpp. References OgreRefApp::Joint::mAnchor. |
|
|
Gets the attached objects, a NULL means no object ie a static attachment.
Definition at line 73 of file OgreRefAppJoint.cpp. References OgreRefApp::Joint::mAttachedObjects. |
|
|
Gets the axes of this joint.
Definition at line 79 of file OgreRefAppJoint.cpp. References OgreRefApp::Joint::mAxes. |
|
|
Returns the type of this joint.
Definition at line 41 of file OgreRefAppJoint.cpp. References OgreRefApp::Joint::mType. |
|
|
Set the anchor point of this joint.
Implements OgreRefApp::Joint. Definition at line 71 of file OgreRefAppJointSubtypes.cpp. References OgreRefApp::Joint::mAnchor. |
|
||||||||||||
|
Sets the objects attached to this joint.
Definition at line 51 of file OgreRefAppJoint.cpp. References OgreRefApp::ApplicationObject::getOdeBody(), OgreRefApp::Joint::mAttachedObjects, and OgreRefApp::Joint::mOdeJoint. Referenced by OgreRefApp::BallJoint::BallJoint(), OgreRefApp::Hinge2Joint::Hinge2Joint(), HingeJoint(), OgreRefApp::SliderJoint::SliderJoint(), and OgreRefApp::UniversalJoint::UniversalJoint(). |
|
||||||||||||
|
Sets the axes for this joint.
Implements OgreRefApp::Joint. Definition at line 78 of file OgreRefAppJointSubtypes.cpp. References OgreRefApp::Joint::mAxes. |
|
|
Definition at line 106 of file OgreRefAppJoint.h. Referenced by OgreRefApp::Joint::getAnchorPosition(), OgreRefApp::Hinge2Joint::setAnchorPosition(), OgreRefApp::UniversalJoint::setAnchorPosition(), setAnchorPosition(), and OgreRefApp::BallJoint::setAnchorPosition(). |
|
|
Definition at line 107 of file OgreRefAppJoint.h. Referenced by OgreRefApp::Joint::getAttachments(), and OgreRefApp::Joint::setAttachments(). |
|
|
Definition at line 108 of file OgreRefAppJoint.h. Referenced by OgreRefApp::Joint::getAxes(), OgreRefApp::Joint::Joint(), OgreRefApp::Hinge2Joint::setAxes(), OgreRefApp::UniversalJoint::setAxes(), setAxes(), and OgreRefApp::SliderJoint::setAxes(). |
|
|
Definition at line 111 of file OgreRefAppJoint.h. Referenced by OgreRefApp::BallJoint::BallJoint(), OgreRefApp::Hinge2Joint::Hinge2Joint(), HingeJoint(), OgreRefApp::Joint::setAttachments(), OgreRefApp::SliderJoint::SliderJoint(), and OgreRefApp::UniversalJoint::UniversalJoint(). |
|
|
Definition at line 105 of file OgreRefAppJoint.h. Referenced by OgreRefApp::Joint::getType(). |
Copyright © 2002-2003 by The OGRE Team
Last modified Wed Jan 21 00:21:44 2004