#include <balljoint.h>
Inheritance diagram for oxygen::BallJoint:
Public Member Functions | |
BallJoint () | |
virtual | ~BallJoint () |
void | SetAnchor (const salt::Vector3f &anchor) |
Set the joint anchor point. | |
salt::Vector3f | GetAnchor (EBodyIndex idx) |
Returns the joint anchor point in local coordinates on one of the two bodies. | |
Protected Member Functions | |
virtual void | OnLink () |
creates a new contact 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 balljoint.h.
|
Definition at line 26 of file balljoint.cpp. |
|
Definition at line 30 of file balljoint.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 52 of file balljoint.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 a joint parameter value
Implements oxygen::Joint. Definition at line 84 of file balljoint.cpp. |
|
creates a new contact joint
Reimplemented from oxygen::Joint. Definition at line 34 of file balljoint.cpp. References oxygen::ODEObject::GetWorldID(), and oxygen::Joint::mODEJoint. Here is the call graph for this function: ![]() |
|
Set 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 45 of file balljoint.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 79 of file balljoint.cpp. |