Method | Description | |
---|---|---|
GearJoint ( Body bodyA, Body bodyB, |
Requires two existing revolute or prismatic joints (any combination will work). The provided joints must attach a dynamic body to a static body.
|
|
getReactionForce ( float invDt ) : Vector2 | ||
getReactionTorque ( float invDt ) : float |
Method | Description | |
---|---|---|
initVelocityConstraints ( SolverData &data ) : void | ||
solvePositionConstraints ( SolverData &data ) : bool | ||
solveVelocityConstraints ( SolverData &data ) : void |
public GearJoint ( Body bodyA, Body bodyB, |
||
bodyA | Body | The first body |
bodyB | Body | The second body |
jointA | The first joint. | |
jointB | The second joint. | |
ratio | float | The ratio. |
return | System.Diagnostics |
public getReactionForce ( float invDt ) : Vector2 | ||
invDt | float | |
return | Vector2 |
public getReactionTorque ( float invDt ) : float | ||
invDt | float | |
return | float |