#include <joint.h>
Inheritance diagram for Hinge2Joint:
Definition at line 183 of file joint.h.
Public Member Functions | |
Hinge2Joint (Primitive *part1, Primitive *part2, const osg::Vec3 &anchor, const Axis &axis1, const Axis &axis2) | |
virtual | ~Hinge2Joint () |
virtual void | init (const OdeHandle &odeHandle, const OsgHandle &osgHandle, bool withVisual=true, double visualSize=0.2) |
initialises (and creates) the joint. | |
virtual void | update () |
should syncronise the Ode stuff and the OSG notes (if any) | |
virtual void | addTorques (double t1, double t2) |
adds torques to axis 1 and 2 | |
virtual double | getPosition1 () |
virtual double | getPosition2 () |
virtual double | getPosition1Rate () |
This is not supported by the joint! | |
virtual double | getPosition2Rate () |
virtual void | setParam (int parameter, double value) |
sets the ODE joint parameter (see ODE manual) | |
virtual double | getParam (int parameter) |
return the ODE joint parameter (see ODE manual) | |
Protected Attributes | |
OSGPrimitive * | visual |
|
|
|
|
|
adds torques to axis 1 and 2
|
|
return the ODE joint parameter (see ODE manual)
Implements Joint. |
|
Implements OneAxisJoint. |
|
This is not supported by the joint!
Implements OneAxisJoint. |
|
Implements TwoAxisJoint. |
|
Implements TwoAxisJoint. |
|
initialises (and creates) the joint. If visual is true then axis2 of the joints is also drawn as a slim cylinder. visualSize is the length of the cylinder. Implements Joint. |
|
sets the ODE joint parameter (see ODE manual)
Implements Joint. |
|
should syncronise the Ode stuff and the OSG notes (if any)
Implements Joint. |
|
|