Property | Type | Description | |
---|---|---|---|
dampingRatio | float | ||
frequencyHz | float | ||
localAnchorA | Vector2 | ||
localAnchorB | Vector2 | ||
referenceAngle | float |
Method | Description | |
---|---|---|
WeldJoint ( Body bodyA, Body bodyB, Vector2 anchorA, Vector2 anchorB, bool useWorldCoordinates = false ) : System |
You need to specify an anchor point where they are attached. The position of the anchor point is important for computing the reaction torque.
|
|
getReactionForce ( float invDt ) : Vector2 | ||
getReactionTorque ( float invDt ) : float |
Method | Description | |
---|---|---|
WeldJoint ( ) : System | ||
initVelocityConstraints ( SolverData &data ) : void | ||
solvePositionConstraints ( SolverData &data ) : bool | ||
solveVelocityConstraints ( SolverData &data ) : void |
public WeldJoint ( 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 first body anchor. |
anchorB | Vector2 | The second body anchor. |
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 |