#include <hinge2joint.h>
Inheritance diagram for oxygen::Hinge2Joint:
Public Member Functions | |
Hinge2Joint () | |
virtual | ~Hinge2Joint () |
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. | |
float | GetAngle (EAxisIndex idx) |
returns one of the hinge2 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 hinge2 angles | |
Protected Member Functions | |
virtual void | OnLink () |
creates a new hinge2 joint | |
virtual void | SetParameter (int parameter, float value) |
sets a joint parameter value | |
virtual float | GetParameter (int parameter) |
returns a joint parameter value |
Definition at line 29 of file hinge2joint.h.
|
Definition at line 27 of file hinge2joint.cpp. |
|
Definition at line 31 of file hinge2joint.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 61 of file hinge2joint.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 hinge2 angles in degrees, measured between the two bodies, or between the body and the static environment.
Definition at line 88 of file hinge2joint.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 hinge2 angles
Definition at line 105 of file hinge2joint.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 a joint parameter value
Implements oxygen::Joint. Definition at line 125 of file hinge2joint.cpp. References oxygen::Joint::mODEJoint. |
|
creates a new hinge2 joint
Reimplemented from oxygen::Joint. Definition at line 35 of file hinge2joint.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 46 of file hinge2joint.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 120 of file hinge2joint.cpp. References oxygen::Joint::mODEJoint. |