Property | Type | Description | |
---|---|---|---|
dampingRatio | float | ||
frequency | float | ||
localAnchorA | Vector2 | ||
localAnchorB | Vector2 |
Method | Description | |
---|---|---|
WheelJoint ( Body bodyA, Body bodyB, Vector2 anchor, Vector2 axis, bool useWorldCoordinates = false ) : System |
Constructor for WheelJoint
|
|
getMotorTorque ( float invDt ) : float |
Gets the torque of the motor
|
|
getReactionForce ( float invDt ) : Vector2 | ||
getReactionTorque ( float invDt ) : float |
Method | Description | |
---|---|---|
WheelJoint ( ) : System | ||
initVelocityConstraints ( SolverData &data ) : void | ||
solvePositionConstraints ( SolverData &data ) : bool | ||
solveVelocityConstraints ( SolverData &data ) : void |
public WheelJoint ( Body bodyA, Body bodyB, Vector2 anchor, Vector2 axis, bool useWorldCoordinates = false ) : System | ||
bodyA | Body | The first body |
bodyB | Body | The second body |
anchor | Vector2 | The anchor point |
axis | Vector2 | The axis |
useWorldCoordinates | bool | Set to true if you are using world coordinates as anchors. |
return | System |
public getMotorTorque ( float invDt ) : float | ||
invDt | float | inverse delta time |
return | float |
public getReactionForce ( float invDt ) : Vector2 | ||
invDt | float | |
return | Vector2 |
public getReactionTorque ( float invDt ) : float | ||
invDt | float | |
return | float |