public class PulleyJointDef extends JointDef
JointDef.JointType| Modifier and Type | Field and Description |
|---|---|
com.badlogic.gdx.math.Vector2 |
groundAnchorA
The first ground anchor in world coordinates.
|
com.badlogic.gdx.math.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.
|
com.badlogic.gdx.math.Vector2 |
localAnchorA
The local anchor point relative to bodyA's origin.
|
com.badlogic.gdx.math.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,
com.badlogic.gdx.math.Vector2 groundAnchorA,
com.badlogic.gdx.math.Vector2 groundAnchorB,
com.badlogic.gdx.math.Vector2 anchorA,
com.badlogic.gdx.math.Vector2 anchorB,
float ratio)
Initialize the bodies, anchors, lengths, max lengths, and ratio using the world anchors.
|
public final com.badlogic.gdx.math.Vector2 groundAnchorA
public final com.badlogic.gdx.math.Vector2 groundAnchorB
public final com.badlogic.gdx.math.Vector2 localAnchorA
public final com.badlogic.gdx.math.Vector2 localAnchorB
public float lengthA
public float lengthB
public float ratio
public void initialize(Body bodyA, Body bodyB, com.badlogic.gdx.math.Vector2 groundAnchorA, com.badlogic.gdx.math.Vector2 groundAnchorB, com.badlogic.gdx.math.Vector2 anchorA, com.badlogic.gdx.math.Vector2 anchorB, float ratio)