#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 Member Functions | |
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 Member Functions | |
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 60 of file OgreRefAppJoint.h. |
|
Gets the anchor position of this joint.
|
|
Gets the attached objects, a NULL means no object ie a static attachment.
|
|
Gets the axes of this joint.
|
|
Returns the type of this joint.
|
|
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.
|
|
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. |
|
Definition at line 107 of file OgreRefAppJoint.h. |
|
Definition at line 108 of file OgreRefAppJoint.h. |
|
Definition at line 111 of file OgreRefAppJoint.h. |
|
Definition at line 105 of file OgreRefAppJoint.h. |
Copyright © 2000-2005 by The OGRE Team
This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.
Last modified Sun Mar 12 14:54:58 2006