public class PulleyJointDef extends JointDef
JointDef.JointType
Modifier and Type | Field and Description |
---|---|
Vector2 |
groundAnchorA
The first ground anchor in world coordinates.
|
Vector2 |
groundAnchorB
The second ground anchor in world coordinates.
|
float |
lengthA
The a reference length for the segment attached to bodyA.
|
float |
lengthB
The a reference length for the segment attached to bodyB.
|
Vector2 |
localAnchorA
The local anchor point relative to bodyA's origin.
|
Vector2 |
localAnchorB
The local anchor point relative to bodyB's origin.
|
float |
ratio
The pulley ratio, used to simulate a block-and-tackle.
|
bodyA, bodyB, collideConnected, type
Constructor and Description |
---|
PulleyJointDef() |
Modifier and Type | Method and Description |
---|---|
void |
initialize(Body bodyA,
Body bodyB,
Vector2 groundAnchorA,
Vector2 groundAnchorB,
Vector2 anchorA,
Vector2 anchorB,
float ratio)
Initialize the bodies, anchors, lengths, max lengths, and ratio using the world anchors.
|
public final Vector2 groundAnchorA
public final Vector2 groundAnchorB
public final Vector2 localAnchorA
public final Vector2 localAnchorB
public float lengthA
public float lengthB
public float ratio