Package org.jbox2d.dynamics.joints
Class ConstantVolumeJointDef
java.lang.Object
org.jbox2d.dynamics.joints.JointDef
org.jbox2d.dynamics.joints.ConstantVolumeJointDef
Definition for a
ConstantVolumeJoint
, which connects a group a bodies together so they
maintain a constant volume within them.-
Field Summary
FieldsModifier and TypeFieldDescription(package private) java.util.ArrayList
<Body> float
float
(package private) java.util.ArrayList
<DistanceJoint> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a body to the groupvoid
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 Details
-
frequencyHz
public float frequencyHz -
dampingRatio
public float dampingRatio -
bodies
java.util.ArrayList<Body> bodies -
joints
java.util.ArrayList<DistanceJoint> joints
-
-
Constructor Details
-
ConstantVolumeJointDef
public ConstantVolumeJointDef()
-
-
Method Details
-
addBody
Adds a body to the group- Parameters:
argBody
-
-
addBodyAndJoint
Adds a body and the pre-made distance joint. Should only be used for deserialization.
-