net.java.dev.joode.joint
Class JointHinge2

java.lang.Object
  extended by net.java.dev.joode.WorldObject
      extended by net.java.dev.joode.joint.Joint
          extended by net.java.dev.joode.joint.JointHinge2
All Implemented Interfaces:
java.io.Serializable, SimState

public class JointHinge2
extends Joint

hinge 2. note that this joint must be attached to two bodies for it to work

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class net.java.dev.joode.joint.Joint
Joint.Info1, Joint.Info2
 
Field Summary
 JointLimitMotor limot1
           
 JointLimitMotor limot2
           
 float susp_cfm
           
 float susp_erp
           
 
Fields inherited from class net.java.dev.joode.joint.Joint
body, dJOINT_INGROUP, dJOINT_REVERSE, dJOINT_TWOBODIES, feedback, flags, lambda, MAX_BODIES
 
Fields inherited from class net.java.dev.joode.WorldObject
data, tag, world
 
Constructor Summary
JointHinge2(World world)
           
 
Method Summary
 void addTorques(float torque1, float torque2)
           
 JointHinge2 cloneState(ClonedReferences util)
           deep clones the state object, any references to other SimState objects should be cloned and assigned to the clone via the ClonedReferences util object.
 void getInfo1(Joint.Info1 info1)
           
 void getInfo2(Joint.Info2 jinfo)
           
 void setAnchor(float x, float y, float z)
           
 void setAxis1(float x, float y, float z)
           
 void setAxis2(float x, float y, float z)
           
 
Methods inherited from class net.java.dev.joode.joint.Joint
attach, destroy, partialCloneJoint, removeJointReferencesFromAttachedBodies, reset, setJointId
 
Methods inherited from class net.java.dev.joode.WorldObject
partialCloneWorldObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

limot1

public JointLimitMotor limot1

limot2

public JointLimitMotor limot2

susp_erp

public float susp_erp

susp_cfm

public float susp_cfm
Constructor Detail

JointHinge2

public JointHinge2(World world)
Method Detail

getInfo1

public void getInfo1(Joint.Info1 info1)
Specified by:
getInfo1 in class Joint

getInfo2

public void getInfo2(Joint.Info2 jinfo)
Specified by:
getInfo2 in class Joint

setAnchor

public void setAnchor(float x,
                      float y,
                      float z)

setAxis1

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

setAxis2

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

addTorques

public void addTorques(float torque1,
                       float torque2)

cloneState

public JointHinge2 cloneState(ClonedReferences util)
Description copied from interface: SimState

deep clones the state object, any references to other SimState objects should be cloned and assigned to the clone via the ClonedReferences util object. The util object ensures that multiple clones of the same object are not performed during a clone operation.

Parameters:
util - instanciate a new one if top level cloning