org.jbox2d.dynamics.joints
Class ConstantVolumeJoint

java.lang.Object
  extended by org.jbox2d.dynamics.joints.Joint
      extended by org.jbox2d.dynamics.joints.ConstantVolumeJoint

public class ConstantVolumeJoint
extends Joint


Field Summary
 
Fields inherited from class org.jbox2d.dynamics.joints.Joint
m_body1, m_body2, m_collideConnected, m_inv_dt, m_islandFlag, m_next, m_node1, m_node2, m_prev, m_type, m_userData
 
Constructor Summary
ConstantVolumeJoint(ConstantVolumeJointDef def)
           
 
Method Summary
 boolean constrainEdges(TimeStep step)
          Apply the position correction to the particles.
 void destructor()
           
 Vec2 getAnchor1()
          Get the anchor point on body1 in world coordinates.
 Vec2 getAnchor2()
          Get the anchor point on body2 in world coordinates.
 Body[] getBodies()
           
 Vec2 getReactionForce()
          Get the reaction force on body2 at the joint anchor.
 float getReactionTorque()
          Get the reaction torque on body2.
 void inflate(float factor)
           
 void initVelocityConstraints(TimeStep step)
           
 boolean solvePositionConstraints()
          This returns true if the position errors are within tolerance.
 void solveVelocityConstraints(TimeStep step)
           
 
Methods inherited from class org.jbox2d.dynamics.joints.Joint
create, destroy, getBody1, getBody2, getNext, getType, getUserData, initPositionConstraints, setUserData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConstantVolumeJoint

public ConstantVolumeJoint(ConstantVolumeJointDef def)
Method Detail

getBodies

public Body[] getBodies()

inflate

public void inflate(float factor)

destructor

public void destructor()
Overrides:
destructor in class Joint

constrainEdges

public boolean constrainEdges(TimeStep step)
Apply the position correction to the particles.

Parameters:
step -

initVelocityConstraints

public void initVelocityConstraints(TimeStep step)
Specified by:
initVelocityConstraints in class Joint

solvePositionConstraints

public boolean solvePositionConstraints()
Description copied from class: Joint
This returns true if the position errors are within tolerance.

Specified by:
solvePositionConstraints in class Joint

solveVelocityConstraints

public void solveVelocityConstraints(TimeStep step)
Specified by:
solveVelocityConstraints in class Joint

getAnchor1

public Vec2 getAnchor1()
Description copied from class: Joint
Get the anchor point on body1 in world coordinates.

Specified by:
getAnchor1 in class Joint

getAnchor2

public Vec2 getAnchor2()
Description copied from class: Joint
Get the anchor point on body2 in world coordinates.

Specified by:
getAnchor2 in class Joint

getReactionForce

public Vec2 getReactionForce()
Description copied from class: Joint
Get the reaction force on body2 at the joint anchor.

Specified by:
getReactionForce in class Joint

getReactionTorque

public float getReactionTorque()
Description copied from class: Joint
Get the reaction torque on body2.

Specified by:
getReactionTorque in class Joint