| Modifier and Type | Field and Description |
|---|---|
| public final Vector2 | localAnchorA
The local anchor point relative to bodyA's origin. |
| public final Vector2 | localAnchorB
The local anchor point relative to bodyB's origin. |
| public float | maxForce
The maximum friction force in N. |
| public float | maxTorque
The maximum friction torque in N-m. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | initialize(Body bodyA, Body bodyB, Vector2 anchor)
Initialize the bodies, anchors, axis, and reference angle using the world anchor and world axis. |
| localAnchorA | back to summary |
|---|---|
| public final Vector2 localAnchorA The local anchor point relative to bodyA's origin. | |
| localAnchorB | back to summary |
|---|---|
| public final Vector2 localAnchorB The local anchor point relative to bodyB's origin. | |
| maxForce | back to summary |
|---|---|
| public float maxForce The maximum friction force in N. | |
| maxTorque | back to summary |
|---|---|
| public float maxTorque The maximum friction torque in N-m. | |
| FrictionJointDef | back to summary |
|---|---|
| public FrictionJointDef() | |
| initialize | back to summary |
|---|---|
| public void initialize(Body bodyA, Body bodyB, Vector2 anchor) Initialize the bodies, anchors, axis, and reference angle using the world anchor and world axis. | |