Hinge2Joint Class Reference
[Hinge 2 Joint]
#include <Hinge2Joint.hh>
Inheritance diagram for Hinge2Joint:
Detailed Description
A two axis hinge jointPublic Member Functions | |
Hinge2Joint (dWorldID worldId) | |
virtual | ~Hinge2Joint () |
virtual void | SetAnchor (const Vector3 &anchor) |
void | SetAxis1 (const Vector3 &axis) |
void | SetAxis2 (const Vector3 &axis) |
virtual double | GetParam (int parameter) const |
virtual void | SetParam (int parameter, double value) |
virtual Vector3 | GetAnchor () const |
Vector3 | GetAnchor2 () const |
Vector3 | GetAxis1 () const |
Vector3 | GetAxis2 () const |
double | GetAngle1 () const |
double | GetAngle1Rate () const |
double | GetAngle2Rate () const |
void | SetTorque (double torque1, double torque2) |
Protected Member Functions | |
virtual void | LoadChild (XMLConfigNode *node) |
Constructor & Destructor Documentation
Hinge2Joint | ( | dWorldID | worldId | ) |
Constructor
virtual ~Hinge2Joint | ( | ) | [virtual] |
Destructor
Member Function Documentation
virtual void LoadChild | ( | XMLConfigNode * | node | ) | [protected, virtual] |
Load the joint
Reimplemented from Joint.
virtual void SetAnchor | ( | const Vector3 & | anchor | ) | [virtual] |
Set the anchor point
Reimplemented from Joint.
void SetAxis1 | ( | const Vector3 & | axis | ) |
Set the first axis of rotation
void SetAxis2 | ( | const Vector3 & | axis | ) |
Set the second axis of rotation
virtual double GetParam | ( | int | parameter | ) | const [virtual] |
Get the specified parameter
Reimplemented from Joint.
virtual void SetParam | ( | int | parameter, | |
double | value | |||
) | [virtual] |
Set _parameter with _value
Reimplemented from Joint.
Vector3 GetAnchor2 | ( | ) | const |
Get anchor point 2
Vector3 GetAxis1 | ( | ) | const |
Get first axis of rotation
Vector3 GetAxis2 | ( | ) | const |
Get second axis of rotation
double GetAngle1 | ( | ) | const |
Get angle of rotation about first axis
double GetAngle1Rate | ( | ) | const |
Get rate of rotation about first axis
double GetAngle2Rate | ( | ) | const |
Get rate of rotation about second axis
void SetTorque | ( | double | torque1, | |
double | torque2 | |||
) |
Set the torque
The documentation for this class was generated from the following file: