Class ConstantVolumeJoint
java.lang.Object
org.jbox2d.dynamics.joints.Joint
org.jbox2d.dynamics.joints.ConstantVolumeJoint
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Body[]private DistanceJoint[]private floatprivate Vec2[]private float[]private floatprivate WorldFields inherited from class Joint
m_bodyA, m_bodyB, m_edgeA, m_edgeB, m_islandFlag, m_next, m_prev, m_userData, pool -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate booleanconstrainEdges(Position[] positions) voidOverride to handle destruction of jointvoidgetAnchorA(Vec2 argOut) No-opvoidgetAnchorB(Vec2 argOut) No-opBody[]private floatvoidgetReactionForce(float inv_dt, Vec2 argOut) No-opfloatgetReactionTorque(float inv_dt) No-opprivate floatgetSolverArea(Position[] positions) voidinflate(float factor) voidbooleanThis returns true if the position errors are within tolerance.voidMethods inherited from class Joint
create, destroy, getBodyA, getBodyB, getCollideConnected, getNext, getType, getUserData, isActive, setUserDataMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
bodies
-
targetLengths
private float[] targetLengths -
targetVolume
private float targetVolume -
normals
-
m_impulse
private float m_impulse -
world
-
distanceJoints
-
-
Constructor Details
-
ConstantVolumeJoint
-
-
Method Details
-
getBodies
-
getJoints
-
inflate
public void inflate(float factor) -
destructor
public void destructor()Description copied from class:JointOverride to handle destruction of joint- Overrides:
destructorin classJoint
-
getBodyArea
private float getBodyArea() -
getSolverArea
-
constrainEdges
-
initVelocityConstraints
- Specified by:
initVelocityConstraintsin classJoint
-
solvePositionConstraints
Description copied from class:JointThis returns true if the position errors are within tolerance.- Specified by:
solvePositionConstraintsin classJoint- Returns:
-
solveVelocityConstraints
- Specified by:
solveVelocityConstraintsin classJoint
-
getAnchorA
-
getAnchorB
-
getReactionForce
No-op- Specified by:
getReactionForcein classJoint- Parameters:
inv_dt-
-
getReactionTorque
public float getReactionTorque(float inv_dt) No-op- Specified by:
getReactionTorquein classJoint- Parameters:
inv_dt-- Returns:
-