|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.badlogic.gdx.physics.box2d.JointDef
com.badlogic.gdx.physics.box2d.joints.PulleyJointDef
public class PulleyJointDef
Pulley joint definition. This requires two ground anchors, two dynamic body anchor points, max lengths for each side, and a pulley ratio.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.badlogic.gdx.physics.box2d.JointDef |
---|
JointDef.JointType |
Field Summary | |
---|---|
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. |
Fields inherited from class com.badlogic.gdx.physics.box2d.JointDef |
---|
bodyA, bodyB, collideConnected, type |
Constructor Summary | |
---|---|
PulleyJointDef()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
public PulleyJointDef()
Method Detail |
---|
public void initialize(Body bodyA, Body bodyB, Vector2 groundAnchorA, Vector2 groundAnchorB, Vector2 anchorA, Vector2 anchorB, float ratio)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |