Package org.jbox2d.dynamics.joints
Class PulleyJointDef
java.lang.Object
org.jbox2d.dynamics.joints.JointDef
org.jbox2d.dynamics.joints.PulleyJointDef
Pulley joint definition. This requires two ground anchors, two dynamic body anchor points, and a
pulley ratio.
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe first ground anchor in world coordinates.The second ground anchor in world coordinates.float
The a reference length for the segment attached to bodyA.float
The a reference length for the segment attached to bodyB.The local anchor point relative to bodyA's origin.The local anchor point relative to bodyB's origin.float
The pulley ratio, used to simulate a block-and-tackle. -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
groundAnchorA
The first ground anchor in world coordinates. This point never moves. -
groundAnchorB
The second ground anchor in world coordinates. This point never moves. -
localAnchorA
The local anchor point relative to bodyA's origin. -
localAnchorB
The local anchor point relative to bodyB's origin. -
lengthA
public float lengthAThe a reference length for the segment attached to bodyA. -
lengthB
public float lengthBThe a reference length for the segment attached to bodyB. -
ratio
public float ratioThe pulley ratio, used to simulate a block-and-tackle.
-
-
Constructor Details
-
PulleyJointDef
public PulleyJointDef()
-
-
Method Details
-
initialize
Initialize the bodies, anchors, lengths, max lengths, and ratio using the world anchors.
-