public class PulleyJointDef extends JointDef
Modifier and Type | Field and Description |
---|---|
Vec2 |
groundAnchorA
The first ground anchor in world coordinates.
|
Vec2 |
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.
|
Vec2 |
localAnchorA
The local anchor point relative to bodyA's origin.
|
Vec2 |
localAnchorB
The local anchor point relative to bodyB's origin.
|
float |
ratio
The pulley ratio, used to simulate a block-and-tackle.
|
Constructor and Description |
---|
PulleyJointDef() |
Modifier and Type | Method and Description |
---|---|
void |
initialize(Body b1,
Body b2,
Vec2 ga1,
Vec2 ga2,
Vec2 anchor1,
Vec2 anchor2,
float r)
Initialize the bodies, anchors, lengths, max lengths, and ratio using the world anchors.
|
public Vec2 groundAnchorA
public Vec2 groundAnchorB
public Vec2 localAnchorA
public Vec2 localAnchorB
public float lengthA
public float lengthB
public float ratio
Copyright © 2017. All Rights Reserved.