Package 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 aConstantVolumeJoint
, which connects a group a bodies together so they maintain a constant volume within them.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.util.ArrayList<Body>
bodies
float
dampingRatio
float
frequencyHz
(package private) java.util.ArrayList<DistanceJoint>
joints
-
Constructor Summary
Constructors Constructor Description ConstantVolumeJointDef()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addBody(Body argBody)
Adds a body to the groupvoid
addBodyAndJoint(Body argBody, DistanceJoint argJoint)
Adds a body and the pre-made distance joint.
-
-
-
Field Detail
-
frequencyHz
public float frequencyHz
-
dampingRatio
public float dampingRatio
-
bodies
java.util.ArrayList<Body> bodies
-
joints
java.util.ArrayList<DistanceJoint> joints
-
-
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.
-
-