#include <universaljoint.h>
Inheritance diagram for oxygen::UniversalJoint:
Public Member Functions | |
UniversalJoint () | |
virtual | ~UniversalJoint () |
void | SetAnchor (const salt::Vector3f &anchor) |
sets the joint anchor point. | |
salt::Vector3f | GetAnchor (EBodyIndex idx) |
returns the joint anchor point in local coordinates on one of the two bodies. | |
void | SetAxis1 (salt::Vector3f &axis) |
This function sets up the first axis of the joint. | |
void | SetAxis2 (salt::Vector3f &axis) |
This function sets up the second axis of the joint. | |
salt::Vector3f | GetAxis (EAxisIndex idx) |
returns the vector describing one of the two axis (in local coordinates) | |
float | GetAngle (EAxisIndex idx) |
returns one of the axis angles in degrees, measured between the two bodies, or between the body and the static environment. | |
float | GetAngleRate (EAxisIndex idx) |
returns the time derivate of one of the hinge angles | |
virtual void | SetParameter (int parameter, float value) |
sets a joint parameter value | |
virtual float | GetParameter (int parameter) |
returns a joint parameter value | |
Protected Member Functions | |
virtual void | OnLink () |
creates a new universal joint |
Definition at line 29 of file universaljoint.h.
|
Definition at line 27 of file universaljoint.cpp. |
|
Definition at line 31 of file universaljoint.cpp. |
|
returns the joint anchor point in local coordinates on one of the two bodies. If the joint is perfectly satisfied, the joint anchor point will be the same for both bodies. Definition at line 54 of file universaljoint.cpp. References oxygen::Joint::BI_FIRST, oxygen::Joint::BI_SECOND, oxygen::BaseNode::GetLocalPos(), and oxygen::Joint::mODEJoint. Here is the call graph for this function: ![]() |
|
returns one of the axis angles in degrees, measured between the two bodies, or between the body and the static environment.
Definition at line 120 of file universaljoint.cpp. References oxygen::Joint::AI_FIRST, oxygen::Joint::AI_SECOND, salt::gRadToDeg(), and oxygen::Joint::mODEJoint. Here is the call graph for this function: ![]() |
|
returns the time derivate of one of the hinge angles
Definition at line 135 of file universaljoint.cpp. References oxygen::Joint::AI_FIRST, oxygen::Joint::AI_SECOND, salt::gRadToDeg(), and oxygen::Joint::mODEJoint. Here is the call graph for this function: ![]() |
|
returns the vector describing one of the two axis (in local coordinates)
Definition at line 93 of file universaljoint.cpp. References oxygen::Joint::AI_FIRST, oxygen::Joint::AI_SECOND, oxygen::BaseNode::GetLocalPos(), and oxygen::Joint::mODEJoint. Here is the call graph for this function: ![]() |
|
returns a joint parameter value
Implements oxygen::Joint. Definition at line 155 of file universaljoint.cpp. References oxygen::Joint::mODEJoint. |
|
creates a new universal joint
Reimplemented from oxygen::Joint. Definition at line 35 of file universaljoint.cpp. References oxygen::ODEObject::GetWorldID(), and oxygen::Joint::mODEJoint. Here is the call graph for this function: ![]() |
|
sets the joint anchor point. The joint will try to keep this point on each body together. The input is specified in local coordinates. Definition at line 47 of file universaljoint.cpp. References oxygen::BaseNode::GetWorldTransform(), and oxygen::Joint::mODEJoint. Here is the call graph for this function: ![]() |
|
This function sets up the first axis of the joint.
Definition at line 81 of file universaljoint.cpp. References oxygen::BaseNode::GetWorldTransform(), and oxygen::Joint::mODEJoint. Here is the call graph for this function: ![]() |
|
This function sets up the second axis of the joint.
Definition at line 87 of file universaljoint.cpp. References oxygen::BaseNode::GetWorldTransform(), and oxygen::Joint::mODEJoint. Here is the call graph for this function: ![]() |
|
sets a joint parameter value
Implements oxygen::Joint. Definition at line 150 of file universaljoint.cpp. References oxygen::Joint::mODEJoint. |