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

oxygen::BallJoint Class Reference

#include <balljoint.h>

Inheritance diagram for oxygen::BallJoint:

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

Collaboration graph
[legend]
List of all members.

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

Detailed Description

Definition at line 29 of file balljoint.h.


Constructor & Destructor Documentation

BallJoint::BallJoint  ) 
 

Definition at line 26 of file balljoint.cpp.

BallJoint::~BallJoint  )  [virtual]
 

Definition at line 30 of file balljoint.cpp.


Member Function Documentation

Vector3f BallJoint::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 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:

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

returns a joint parameter value

Implements oxygen::Joint.

Definition at line 84 of file balljoint.cpp.

void BallJoint::OnLink  )  [protected, virtual]
 

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:

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

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:

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

sets a joint parameter value

Implements oxygen::Joint.

Definition at line 79 of file balljoint.cpp.


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