org.jbox2d.dynamics.joints
Class ConstantVolumeJointDef

java.lang.Object
  extended by org.jbox2d.dynamics.joints.JointDef
      extended by org.jbox2d.dynamics.joints.ConstantVolumeJointDef

public class ConstantVolumeJointDef
extends JointDef

Definition for a ConstantVolumeJoint, which connects a group a bodies together so they maintain a constant volume within them.


Field Summary
 float dampingRatio
           
 float frequencyHz
           
 
Fields inherited from class org.jbox2d.dynamics.joints.JointDef
bodyA, bodyB, collideConnected, type, userData
 
Constructor Summary
ConstantVolumeJointDef()
           
 
Method Summary
 void addBody(Body argBody)
          Adds a body to the group
 void addBodyAndJoint(Body argBody, DistanceJoint argJoint)
          Adds a body and the pre-made distance joint.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

frequencyHz

public float frequencyHz

dampingRatio

public float dampingRatio
Constructor Detail

ConstantVolumeJointDef

public ConstantVolumeJointDef()
Method Detail

addBody

public void addBody(Body argBody)
Adds a body to the group

Parameters:
argBody -

addBodyAndJoint

public void addBodyAndJoint(Body argBody,
                            DistanceJoint argJoint)
Adds a body and the pre-made distance joint. Should only be used for deserialization.



Copyright © 2013. All Rights Reserved.