org.xith3d.physics.simulation.joints
Class Hinge2Joint

java.lang.Object
  extended by org.xith3d.physics.simulation.Joint
      extended by org.xith3d.physics.simulation.joints.Hinge2Joint

public abstract class Hinge2Joint
extends Joint

Insert type comment here.


Field Summary
protected  JointLimitMotor limot1
           
protected  JointLimitMotor limot2
           
 
Constructor Summary
Hinge2Joint(Body body1, Body body2)
           
 
Method Summary
abstract  org.openmali.vecmath2.Point3f getAnchor()
           
abstract  org.openmali.vecmath2.Vector3f getAxis1()
           
abstract  org.openmali.vecmath2.Vector3f getAxis2()
           
 java.lang.String getInfo()
          
 JointLimitMotor getLimitMotor1()
           
 JointLimitMotor getLimitMotor2()
           
abstract  float getSuspensionCFM()
           
abstract  float getSuspensionERP()
           
 java.lang.String getType()
          
abstract  void setAnchor(float x, float y, float z)
          Sets the bodyRelAnchor measured relative to body 1.
 void setAnchor(org.openmali.vecmath2.Tuple3f anchor)
          Sets the bodyRelAnchor measured relative to body 1.
abstract  void setAxis1(float x, float y, float z)
           
 void setAxis1(org.openmali.vecmath2.Vector3f axis)
           
abstract  void setAxis2(float x, float y, float z)
           
 void setAxis2(org.openmali.vecmath2.Vector3f axis)
           
 void setLimitMotor1(JointLimitMotor limot)
           
protected abstract  void setLimitMotor1Impl(JointLimitMotor limot)
           
 void setLimitMotor2(JointLimitMotor limot)
           
protected abstract  void setLimitMotor2Impl(JointLimitMotor limot)
           
abstract  void setSuspensionCFM(float value)
           
abstract  void setSuspensionERP(float value)
           
 
Methods inherited from class org.xith3d.physics.simulation.Joint
getBody1, getBody2, getWorld, refresh
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

limot1

protected JointLimitMotor limot1

limot2

protected JointLimitMotor limot2
Constructor Detail

Hinge2Joint

public Hinge2Joint(Body body1,
                   Body body2)
Method Detail

getType

public final java.lang.String getType()

Specified by:
getType in class Joint
Returns:
the name of the Joint, that is, the one which is used to refer to it in CollisionEngine. All camel-case, please ! (e.g. : "Sphere")

getInfo

public java.lang.String getInfo()

Specified by:
getInfo in class Joint
Returns:
a small description of how is this joint, its exact shape, a brief human-readable description of what can be adjusted

setAnchor

public abstract void setAnchor(float x,
                               float y,
                               float z)
Sets the bodyRelAnchor measured relative to body 1.

Parameters:
x -
y -
z -

setAnchor

public final void setAnchor(org.openmali.vecmath2.Tuple3f anchor)
Sets the bodyRelAnchor measured relative to body 1.

Parameters:
anchor -

getAnchor

public abstract org.openmali.vecmath2.Point3f getAnchor()
Returns:
the bodyRelAnchor measured relative to body 1.

setAxis1

public abstract void setAxis1(float x,
                              float y,
                              float z)

setAxis1

public final void setAxis1(org.openmali.vecmath2.Vector3f axis)

getAxis1

public abstract org.openmali.vecmath2.Vector3f getAxis1()

setAxis2

public abstract void setAxis2(float x,
                              float y,
                              float z)

setAxis2

public final void setAxis2(org.openmali.vecmath2.Vector3f axis)

getAxis2

public abstract org.openmali.vecmath2.Vector3f getAxis2()

setSuspensionCFM

public abstract void setSuspensionCFM(float value)

getSuspensionCFM

public abstract float getSuspensionCFM()

setSuspensionERP

public abstract void setSuspensionERP(float value)

getSuspensionERP

public abstract float getSuspensionERP()

setLimitMotor1Impl

protected abstract void setLimitMotor1Impl(JointLimitMotor limot)

setLimitMotor1

public final void setLimitMotor1(JointLimitMotor limot)

getLimitMotor1

public final JointLimitMotor getLimitMotor1()

setLimitMotor2Impl

protected abstract void setLimitMotor2Impl(JointLimitMotor limot)

setLimitMotor2

public final void setLimitMotor2(JointLimitMotor limot)

getLimitMotor2

public final JointLimitMotor getLimitMotor2()