org.jbox2d.dynamics.joints
Class DistanceJoint
java.lang.Object
org.jbox2d.dynamics.joints.Joint
org.jbox2d.dynamics.joints.DistanceJoint
public class DistanceJoint
- extends Joint
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
m_localAnchor1
public Vec2 m_localAnchor1
m_localAnchor2
public Vec2 m_localAnchor2
m_u
public Vec2 m_u
m_force
public float m_force
m_mass
public float m_mass
m_length
public float m_length
DistanceJoint
public DistanceJoint(DistanceJointDef def)
getAnchor1
public Vec2 getAnchor1()
- Description copied from class:
Joint
- Get the anchor point on body1 in world coordinates.
- Specified by:
getAnchor1
in class Joint
getAnchor2
public Vec2 getAnchor2()
- Description copied from class:
Joint
- Get the anchor point on body2 in world coordinates.
- Specified by:
getAnchor2
in class Joint
getReactionForce
public Vec2 getReactionForce()
- Description copied from class:
Joint
- Get the reaction force on body2 at the joint anchor.
- Specified by:
getReactionForce
in class Joint
getReactionTorque
public float getReactionTorque()
- Description copied from class:
Joint
- Get the reaction torque on body2.
- Specified by:
getReactionTorque
in class Joint
initVelocityConstraints
public void initVelocityConstraints(TimeStep step)
- Specified by:
initVelocityConstraints
in class Joint
solvePositionConstraints
public boolean solvePositionConstraints()
- Description copied from class:
Joint
- This returns true if the position errors are within tolerance.
- Specified by:
solvePositionConstraints
in class Joint
solveVelocityConstraints
public void solveVelocityConstraints(TimeStep step)
- Specified by:
solveVelocityConstraints
in class Joint