Property | Type | Description | |
---|---|---|---|
lengthA | float | ||
lengthB | float | ||
localAnchorA | Vector2 | ||
localAnchorB | Vector2 | ||
ratio | float |
Method | Description | |
---|---|---|
PulleyJoint ( Body bodyA, Body bodyB, Vector2 anchorA, Vector2 anchorB, Vector2 worldAnchorA, Vector2 worldAnchorB, float ratio, bool useWorldCoordinates = false ) : System |
Constructor for PulleyJoint.
|
|
getReactionForce ( float invDt ) : Vector2 | ||
getReactionTorque ( float invDt ) : float |
Method | Description | |
---|---|---|
PulleyJoint ( ) : System | ||
initVelocityConstraints ( SolverData &data ) : void | ||
solvePositionConstraints ( SolverData &data ) : bool | ||
solveVelocityConstraints ( SolverData &data ) : void |
public PulleyJoint ( Body bodyA, Body bodyB, Vector2 anchorA, Vector2 anchorB, Vector2 worldAnchorA, Vector2 worldAnchorB, float ratio, bool useWorldCoordinates = false ) : System | ||
bodyA | Body | The first body. |
bodyB | Body | The second body. |
anchorA | Vector2 | The anchor on the first body. |
anchorB | Vector2 | The anchor on the second body. |
worldAnchorA | Vector2 | The world anchor for the first body. |
worldAnchorB | Vector2 | The world anchor for the second body. |
ratio | float | The ratio. |
useWorldCoordinates | bool | Set to true if you are using world coordinates as anchors. |
return | System |
public getReactionForce ( float invDt ) : Vector2 | ||
invDt | float | |
return | Vector2 |
public getReactionTorque ( float invDt ) : float | ||
invDt | float | |
return | float |