org.ode4j.ode
Interface DHinge2Joint

All Superinterfaces:
DJoint

public interface DHinge2Joint
extends DJoint


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.ode4j.ode.DJoint
DJoint.DJointFeedback, DJoint.PARAM, DJoint.PARAM_GROUPS, DJoint.PARAM_N
 
Field Summary
 
Fields inherited from interface org.ode4j.ode.DJoint
P_OFS_1, P_OFS_2, P_OFS_3
 
Method Summary
 void addTorques(double torque1, double torque2)
          Applies torque1 about the hinge2's axis 1, torque2 about the hinge2's axis 2.
 void getAnchor(DVector3 result)
          Get the joint anchor point, in world coordinates.
 void getAnchor2(DVector3 result)
          Get the joint anchor point, in world coordinates.
 double getAngle1()
          Get angle.
 double getAngle1Rate()
          Get time derivative of angle.
 double getAngle2Rate()
          Get time derivative of angle.
 void getAxis1(DVector3 result)
          Get joint axis.
 void getAxis2(DVector3 result)
          Get joint axis.
 double getParam(DJoint.PARAM_N parameter)
          Get joint parameter.
 void setAnchor(double x, double y, double z)
          Set anchor.
 void setAnchor(DVector3C a)
          Set anchor.
 void setAxis1(double x, double y, double z)
          Set axis.
 void setAxis1(DVector3C a)
          Set axis.
 void setAxis2(double x, double y, double z)
          Set axis.
 void setAxis2(DVector3C a)
          Set axis.
 void setParam(DJoint.PARAM_N parameter, double value)
          Set joint parameter.
 void setParamFMax(double d)
           
 void setParamFMax2(double d)
           
 void setParamFudgeFactor(double d)
           
 void setParamHiStop(double d)
           
 void setParamLoStop(double d)
           
 void setParamSuspensionCFM(double d)
           
 void setParamSuspensionERP(double d)
           
 void setParamVel(double d)
           
 void setParamVel2(double d)
           
 
Methods inherited from interface org.ode4j.ode.DJoint
attach, DESTRUCTOR, disable, enable, getBody, getData, getFeedback, getNumBodies, isEnabled, setData, setFeedback
 

Method Detail

setAnchor

void setAnchor(double x,
               double y,
               double z)
Set anchor.


setAnchor

void setAnchor(DVector3C a)
Set anchor.


setAxis1

void setAxis1(double x,
              double y,
              double z)
Set axis.


setAxis1

void setAxis1(DVector3C a)
Set axis.


setAxis2

void setAxis2(double x,
              double y,
              double z)
Set axis.


setAxis2

void setAxis2(DVector3C a)
Set axis.


getAnchor

void getAnchor(DVector3 result)
Get the joint anchor point, in world coordinates.

Return the point on body 1. If the joint is perfectly satisfied, this will be the same as the point on body 2.


getAnchor2

void getAnchor2(DVector3 result)
Get the joint anchor point, in world coordinates.

This returns the point on body 2. If the joint is perfectly satisfied, this will return the same value as dJointGetHinge2Anchor. If not, this value will be slightly different. This can be used, for example, to see how far the joint has come apart.


getAxis1

void getAxis1(DVector3 result)
Get joint axis.


getAxis2

void getAxis2(DVector3 result)
Get joint axis.


getAngle1

double getAngle1()
Get angle.


getAngle1Rate

double getAngle1Rate()
Get time derivative of angle.


getAngle2Rate

double getAngle2Rate()
Get time derivative of angle.


addTorques

void addTorques(double torque1,
                double torque2)
Applies torque1 about the hinge2's axis 1, torque2 about the hinge2's axis 2.

Remark:
This function is just a wrapper for dBodyAddTorque().

setParamVel2

void setParamVel2(double d)

setParamFMax2

void setParamFMax2(double d)

setParamVel

void setParamVel(double d)

setParamFMax

void setParamFMax(double d)

setParamLoStop

void setParamLoStop(double d)

setParamHiStop

void setParamHiStop(double d)

setParamFudgeFactor

void setParamFudgeFactor(double d)

setParamSuspensionERP

void setParamSuspensionERP(double d)

setParamSuspensionCFM

void setParamSuspensionCFM(double d)

setParam

void setParam(DJoint.PARAM_N parameter,
              double value)
Set joint parameter.

Specified by:
setParam in interface DJoint

getParam

double getParam(DJoint.PARAM_N parameter)
Get joint parameter.

Specified by:
getParam in interface DJoint