Property | Type | Description | |
---|---|---|---|
localAnchorA | Vector2 | ||
localAnchorB | Vector2 | ||
maxLength | float |
Method | Description | |
---|---|---|
RopeJoint ( Body bodyA, Body bodyB, Vector2 anchorA, Vector2 anchorB, bool useWorldCoordinates = false ) : System |
Constructor for RopeJoint.
|
|
getReactionForce ( float invDt ) : Vector2 | ||
getReactionTorque ( float invDt ) : float |
Method | Description | |
---|---|---|
RopeJoint ( ) : System | ||
initVelocityConstraints ( SolverData &data ) : void | ||
solvePositionConstraints ( SolverData &data ) : bool | ||
solveVelocityConstraints ( SolverData &data ) : void |
public RopeJoint ( Body bodyA, Body bodyB, Vector2 anchorA, Vector2 anchorB, 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 |
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 |