Property | Type | Description | |
---|---|---|---|
GroundAnchorA | Vector2 | ||
GroundAnchorB | Vector2 | ||
LocalAnchorA | Vector2 | ||
LocalAnchorB | Vector2 | ||
MinPulleyLength | float |
Method | Description | |
---|---|---|
GetReactionForce ( float inv_dt ) : Vector2 | ||
GetReactionTorque ( float inv_dt ) : float | ||
PulleyJoint ( Body bodyA, Body bodyB, Vector2 groundAnchorA, Vector2 groundAnchorB, Vector2 localAnchorA, Vector2 localAnchorB, float ratio ) : System |
Initialize the bodies, anchors, lengths, max lengths, and ratio using the world anchors. This requires two ground anchors, two dynamic body anchor points, max lengths for each side, and a pulley ratio.
|
Method | Description | |
---|---|---|
InitVelocityConstraints ( TimeStep &step ) : void | ||
SolvePositionConstraints ( ) : bool | ||
SolveVelocityConstraints ( TimeStep &step ) : void |
public GetReactionForce ( float inv_dt ) : Vector2 | ||
inv_dt | float | |
return | Vector2 |
public GetReactionTorque ( float inv_dt ) : float | ||
inv_dt | float | |
return | float |
public PulleyJoint ( Body bodyA, Body bodyB, Vector2 groundAnchorA, Vector2 groundAnchorB, Vector2 localAnchorA, Vector2 localAnchorB, float ratio ) : System | ||
bodyA | Body | The first body. |
bodyB | Body | The second body. |
groundAnchorA | Vector2 | The ground anchor for the first body. |
groundAnchorB | Vector2 | The ground anchor for the second body. |
localAnchorA | Vector2 | The first body anchor. |
localAnchorB | Vector2 | The second body anchor. |
ratio | float | The ratio. |
return | System |