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.
- Author:
- Daniel Murphy
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe first ground anchor in the world coordinates.The second ground anchor in the world coordinates.floatThe reference length for the segment attached to bodyA.floatThe 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.floatThe pulley ratio, used to simulate a block-and-tackle. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
groundAnchorA
The first ground anchor in the world coordinates. This point never moves. -
groundAnchorB
The second ground anchor in the 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 reference length for the segment attached to bodyA. -
lengthB
public float lengthBThe 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.
-