Свойство | Тип | Описание | |
---|---|---|---|
localAnchorA | Vector2 | ||
localAnchorB | Vector2 |
Метод | Описание | |
---|---|---|
RevoluteJoint ( Body bodyA, Body bodyB, Vector2 anchorA, Vector2 anchorB, bool useWorldCoordinates = false ) : System |
Constructor of RevoluteJoint.
|
|
RevoluteJoint ( Body bodyA, Body bodyB, Vector2 anchor, bool useWorldCoordinates = false ) : System |
Constructor of RevoluteJoint.
|
|
getMotorTorque ( float invDt ) : float |
Gets the motor torque in N-m.
|
|
getReactionForce ( float invDt ) : Vector2 | ||
getReactionTorque ( float invDt ) : float | ||
setLimits ( float lower, float upper ) : void |
Set the joint limits, usually in meters.
|
Метод | Описание | |
---|---|---|
RevoluteJoint ( ) : System | ||
initVelocityConstraints ( SolverData &data ) : void | ||
solvePositionConstraints ( SolverData &data ) : bool | ||
solveVelocityConstraints ( SolverData &data ) : void |
public RevoluteJoint ( 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 anchor. |
useWorldCoordinates | bool | Set to true if you are using world coordinates as anchors. |
Результат | System |
public RevoluteJoint ( Body bodyA, Body bodyB, Vector2 anchor, bool useWorldCoordinates = false ) : System | ||
bodyA | Body | The first body. |
bodyB | Body | The second body. |
anchor | Vector2 | The shared anchor. |
useWorldCoordinates | bool | |
Результат | System |
public getMotorTorque ( float invDt ) : float | ||
invDt | float | The inverse delta time |
Результат | float |
public getReactionForce ( float invDt ) : Vector2 | ||
invDt | float | |
Результат | Vector2 |
public getReactionTorque ( float invDt ) : float | ||
invDt | float | |
Результат | float |
public setLimits ( float lower, float upper ) : void | ||
lower | float | The lower limit |
upper | float | The upper limit |
Результат | void |