org.jbox2d.dynamics.joints
Class ConstantVolumeJointDef
java.lang.Object
org.jbox2d.dynamics.joints.JointDef
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
frequencyHz
public float frequencyHz
dampingRatio
public float dampingRatio
ConstantVolumeJointDef
public ConstantVolumeJointDef()
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.