#include <OgreRefAppJoint.h>
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) | |
JointType | getType (void) |
virtual void | setAnchorPosition (const Vector3 &point)=0 |
virtual const Vector3 & | getAnchorPosition (void) |
virtual const std::pair < ApplicationObject *, ApplicationObject * > & | getAttachments (void) |
virtual void | setAxes (const Vector3 &primaryAxis, const Vector3 &secondaryAxis=Vector3::ZERO)=0 |
virtual const std::pair < Vector3, Vector3 > & | getAxes (void) |
Protected Member Functions | |
void | setAttachments (ApplicationObject *obj1, ApplicationObject *obj2) |
The type of joint.
OgreRefApp::Joint::Joint | ( | Joint::JointType | jtype | ) |
Constructor, however you should use World::createJoint(type, obj1, obj2).
Joint::JointType OgreRefApp::Joint::getType | ( | void | ) |
Returns the type of this joint.
virtual void OgreRefApp::Joint::setAnchorPosition | ( | const Vector3 & | point | ) | [pure virtual] |
Set the anchor point of this joint.
Implemented in OgreRefApp::BallJoint, OgreRefApp::SliderJoint, OgreRefApp::HingeJoint, OgreRefApp::UniversalJoint, and OgreRefApp::Hinge2Joint.
const Vector3 & OgreRefApp::Joint::getAnchorPosition | ( | void | ) | [virtual] |
Gets the anchor position of this joint.
const std::pair< ApplicationObject *, ApplicationObject * > & OgreRefApp::Joint::getAttachments | ( | void | ) | [virtual] |
Gets the attached objects, a NULL means no object ie a static attachment.
virtual void OgreRefApp::Joint::setAxes | ( | const Vector3 & | primaryAxis, | |
const Vector3 & | secondaryAxis = Vector3::ZERO | |||
) | [pure virtual] |
Sets the axes for this joint.
Implemented in OgreRefApp::BallJoint, OgreRefApp::SliderJoint, OgreRefApp::HingeJoint, OgreRefApp::UniversalJoint, and OgreRefApp::Hinge2Joint.
const std::pair< Vector3, Vector3 > & OgreRefApp::Joint::getAxes | ( | void | ) | [virtual] |
Gets the axes of this joint.
void OgreRefApp::Joint::setAttachments | ( | ApplicationObject * | obj1, | |
ApplicationObject * | obj2 | |||
) | [protected] |
Sets the objects attached to this joint.