|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jbox2d.dynamics.joints.Joint
org.jbox2d.dynamics.joints.ConstantVolumeJoint
public class ConstantVolumeJoint
Field Summary |
---|
Fields inherited from class org.jbox2d.dynamics.joints.Joint |
---|
m_body1, m_body2, m_collideConnected, m_inv_dt, m_islandFlag, m_next, m_node1, m_node2, m_prev, m_type, m_userData |
Constructor Summary | |
---|---|
ConstantVolumeJoint(ConstantVolumeJointDef def)
|
Method Summary | |
---|---|
boolean |
constrainEdges(TimeStep step)
Apply the position correction to the particles. |
void |
destructor()
|
Vec2 |
getAnchor1()
Get the anchor point on body1 in world coordinates. |
Vec2 |
getAnchor2()
Get the anchor point on body2 in world coordinates. |
Body[] |
getBodies()
|
Vec2 |
getReactionForce()
Get the reaction force on body2 at the joint anchor. |
float |
getReactionTorque()
Get the reaction torque on body2. |
void |
inflate(float factor)
|
void |
initVelocityConstraints(TimeStep step)
|
boolean |
solvePositionConstraints()
This returns true if the position errors are within tolerance. |
void |
solveVelocityConstraints(TimeStep step)
|
Methods inherited from class org.jbox2d.dynamics.joints.Joint |
---|
create, destroy, getBody1, getBody2, getNext, getType, getUserData, initPositionConstraints, setUserData |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConstantVolumeJoint(ConstantVolumeJointDef def)
Method Detail |
---|
public Body[] getBodies()
public void inflate(float factor)
public void destructor()
destructor
in class Joint
public boolean constrainEdges(TimeStep step)
step
- public void initVelocityConstraints(TimeStep step)
initVelocityConstraints
in class Joint
public boolean solvePositionConstraints()
Joint
solvePositionConstraints
in class Joint
public void solveVelocityConstraints(TimeStep step)
solveVelocityConstraints
in class Joint
public Vec2 getAnchor1()
Joint
getAnchor1
in class Joint
public Vec2 getAnchor2()
Joint
getAnchor2
in class Joint
public Vec2 getReactionForce()
Joint
getReactionForce
in class Joint
public float getReactionTorque()
Joint
getReactionTorque
in class Joint
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |