| Modifier and Type | Field and Description |
|---|---|
| public float | angularOffset
The bodyB angle minus bodyA angle in radians. |
| public float | correctionFactor
Position correction factor in the range [0,1]. |
| public final Vector2 | linearOffset
Position of bodyB minus the position of bodyA, in bodyA's frame, in meters. |
| public float | maxForce
The maximum motor force in N. |
| public float | maxTorque
The maximum motor torque in N-m. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void |
| angularOffset | back to summary |
|---|---|
| public float angularOffset The bodyB angle minus bodyA angle in radians. | |
| correctionFactor | back to summary |
|---|---|
| public float correctionFactor Position correction factor in the range [0,1]. | |
| linearOffset | back to summary |
|---|---|
| public final Vector2 linearOffset Position of bodyB minus the position of bodyA, in bodyA's frame, in meters. | |
| maxForce | back to summary |
|---|---|
| public float maxForce The maximum motor force in N. | |
| maxTorque | back to summary |
|---|---|
| public float maxTorque The maximum motor torque in N-m. | |
| MotorJointDef | back to summary |
|---|---|
| public MotorJointDef() | |
| initialize | back to summary |
|---|---|
| public void initialize(Body body1, Body body2) Initialize the bodies and offsets using the current transforms. | |