#include <hingejoint.h>
Inheritance diagram for oxygen::HingeJoint:
Public Member Functions | |
HingeJoint () | |
virtual | ~HingeJoint () |
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 | SetAxis (EAxisIndex idx) |
Sets the joint axis. | |
salt::Vector3f | GetAxis () |
Returns the hinge axis in the local coordinate system. | |
float | GetAngle () |
returns the hinge angle in degrees, measured between the two bodies, or between the body and the static environment. | |
float | GetAngleRate () |
returns the time derivate of the hinge angle | |
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 hingejoint joint |
Definition at line 29 of file hingejoint.h.
|
Definition at line 27 of file hingejoint.cpp. |
|
Definition at line 31 of file hingejoint.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 53 of file hingejoint.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 the hinge angle in degrees, measured between the two bodies, or between the body and the static environment.
Definition at line 117 of file hingejoint.cpp. References salt::gRadToDeg(), and oxygen::Joint::mODEJoint. Here is the call graph for this function: ![]() |
|
returns the time derivate of the hinge angle
Definition at line 122 of file hingejoint.cpp. References salt::gRadToDeg(), and oxygen::Joint::mODEJoint. Here is the call graph for this function: ![]() |
|
Returns the hinge axis in the local coordinate system.
Definition at line 110 of file hingejoint.cpp. References oxygen::Joint::mODEJoint. |
|
returns a joint parameter value
Implements oxygen::Joint. Definition at line 132 of file hingejoint.cpp. References oxygen::Joint::mODEJoint. |
|
creates a new hingejoint joint
Reimplemented from oxygen::Joint. Definition at line 35 of file hingejoint.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 hingejoint.cpp. References oxygen::BaseNode::GetWorldTransform(), and oxygen::Joint::mODEJoint. Here is the call graph for this function: ![]() |
|
Sets the joint axis. The connected bodies movements will be constrained to move around this axis. Definition at line 80 of file hingejoint.cpp. References oxygen::Joint::AI_FIRST, oxygen::Joint::AI_SECOND, oxygen::Joint::AI_THIRD, 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 127 of file hingejoint.cpp. References oxygen::Joint::mODEJoint. |