Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

oxygen::Hinge2Joint Class Reference

#include <hinge2joint.h>

Inheritance diagram for oxygen::Hinge2Joint:

Inheritance graph
[legend]
Collaboration diagram for oxygen::Hinge2Joint:

Collaboration graph
[legend]
List of all members.

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

Detailed Description

Definition at line 29 of file hinge2joint.h.


Constructor & Destructor Documentation

Hinge2Joint::Hinge2Joint  ) 
 

Definition at line 27 of file hinge2joint.cpp.

Hinge2Joint::~Hinge2Joint  )  [virtual]
 

Definition at line 31 of file hinge2joint.cpp.


Member Function Documentation

Vector3f Hinge2Joint::GetAnchor EBodyIndex  idx  ) 
 

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:

float Hinge2Joint::GetAngle EAxisIndex  idx  ) 
 

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:

float Hinge2Joint::GetAngleRate EAxisIndex  idx  ) 
 

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:

float Hinge2Joint::GetParameter int  parameter  )  [protected, virtual]
 

returns a joint parameter value

Implements oxygen::Joint.

Definition at line 125 of file hinge2joint.cpp.

References oxygen::Joint::mODEJoint.

void Hinge2Joint::OnLink  )  [protected, virtual]
 

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:

void Hinge2Joint::SetAnchor const salt::Vector3f anchor  ) 
 

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:

void Hinge2Joint::SetParameter int  parameter,
float  value
[protected, virtual]
 

sets a joint parameter value

Implements oxygen::Joint.

Definition at line 120 of file hinge2joint.cpp.

References oxygen::Joint::mODEJoint.


The documentation for this class was generated from the following files:
Generated on Thu Apr 6 15:45:44 2006 for rcssserver3d by  doxygen 1.4.4