Package org.jbox2d.dynamics.joints
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 float
private Vec2[]
private float[]
private float
private World
Fields inherited from class org.jbox2d.dynamics.joints.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 boolean
constrainEdges
(Position[] positions) void
Override to handle destruction of jointvoid
getAnchorA
(Vec2 argOut) No-opvoid
getAnchorB
(Vec2 argOut) No-opBody[]
private float
void
getReactionForce
(float inv_dt, Vec2 argOut) No-opfloat
getReactionTorque
(float inv_dt) No-opprivate float
getSolverArea
(Position[] positions) void
inflate
(float factor) void
boolean
This returns true if the position errors are within tolerance.void
Methods inherited from class org.jbox2d.dynamics.joints.Joint
create, destroy, getBodyA, getBodyB, getCollideConnected, getNext, getType, getUserData, isActive, setUserData
Methods 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:Joint
Override to handle destruction of joint- Overrides:
destructor
in classJoint
-
getBodyArea
private float getBodyArea() -
getSolverArea
-
constrainEdges
-
initVelocityConstraints
- Specified by:
initVelocityConstraints
in classJoint
-
solvePositionConstraints
Description copied from class:Joint
This returns true if the position errors are within tolerance.- Specified by:
solvePositionConstraints
in classJoint
- Returns:
-
solveVelocityConstraints
- Specified by:
solveVelocityConstraints
in classJoint
-
getAnchorA
No-op- Specified by:
getAnchorA
in classJoint
-
getAnchorB
No-op- Specified by:
getAnchorB
in classJoint
-
getReactionForce
No-op- Specified by:
getReactionForce
in classJoint
- Parameters:
inv_dt
-
-
getReactionTorque
public float getReactionTorque(float inv_dt) No-op- Specified by:
getReactionTorque
in classJoint
- Parameters:
inv_dt
-- Returns:
-