| Modifier and Type | Field and Description |
|---|---|
| public boolean | enableLimit
A flag to enable joint limits. |
| public boolean | enableMotor
A flag to enable the joint motor. |
| public final Vector2 | localAnchorA
The local anchor point relative to body1's origin. |
| public final Vector2 | localAnchorB
The local anchor point relative to body2's origin. |
| public float | lowerAngle
The lower angle for the joint limit (radians). |
| public float | maxMotorTorque
The maximum motor torque used to achieve the desired motor speed. |
| public float | motorSpeed
The desired motor speed. |
| public float | referenceAngle
The body2 angle minus body1 angle in the reference state (radians). |
| public float | upperAngle
The upper angle for the joint limit (radians). |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | initialize(Body bodyA, Body bodyB, Vector2 anchor)
Initialize the bodies, anchors, and reference angle using a world anchor point. |
| enableLimit | back to summary |
|---|---|
| public boolean enableLimit A flag to enable joint limits. | |
| enableMotor | back to summary |
|---|---|
| public boolean enableMotor A flag to enable the joint motor. | |
| localAnchorA | back to summary |
|---|---|
| public final Vector2 localAnchorA The local anchor point relative to body1's origin. | |
| localAnchorB | back to summary |
|---|---|
| public final Vector2 localAnchorB The local anchor point relative to body2's origin. | |
| lowerAngle | back to summary |
|---|---|
| public float lowerAngle The lower angle for the joint limit (radians). | |
| maxMotorTorque | back to summary |
|---|---|
| public float maxMotorTorque The maximum motor torque used to achieve the desired motor speed. Usually in N-m. | |
| motorSpeed | back to summary |
|---|---|
| public float motorSpeed The desired motor speed. Usually in radians per second. | |
| referenceAngle | back to summary |
|---|---|
| public float referenceAngle The body2 angle minus body1 angle in the reference state (radians). | |
| upperAngle | back to summary |
|---|---|
| public float upperAngle The upper angle for the joint limit (radians). | |
| RevoluteJointDef | back to summary |
|---|---|
| public RevoluteJointDef() | |
| initialize | back to summary |
|---|---|
| public void initialize(Body bodyA, Body bodyB, Vector2 anchor) Initialize the bodies, anchors, and reference angle using a world anchor point. | |