| Modifier and Type | Field and Description |
|---|---|
| public boolean | enableLimit
Enable/disable the joint limit. |
| public boolean | enableMotor
Enable/disable 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 final Vector2 | localAxisA
The local translation axis in body1. |
| public float | lowerTranslation
The lower translation limit, usually in meters. |
| public float | maxMotorForce
The maximum motor torque, usually in N-m. |
| public float | motorSpeed
The desired motor speed in radians per second. |
| public float | referenceAngle
The constrained angle between the bodies: body2_angle - body1_angle. |
| public float | upperTranslation
The upper translation limit, usually in meters. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | initialize(Body bodyA, Body bodyB, Vector2 anchor, Vector2 axis)
Initialize the bodies, anchors, axis, and reference angle using the world anchor and world axis. |
| enableLimit | back to summary |
|---|---|
| public boolean enableLimit Enable/disable the joint limit. | |
| enableMotor | back to summary |
|---|---|
| public boolean enableMotor Enable/disable 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. | |
| localAxisA | back to summary |
|---|---|
| public final Vector2 localAxisA The local translation axis in body1. | |
| lowerTranslation | back to summary |
|---|---|
| public float lowerTranslation The lower translation limit, usually in meters. | |
| maxMotorForce | back to summary |
|---|---|
| public float maxMotorForce The maximum motor torque, usually in N-m. | |
| motorSpeed | back to summary |
|---|---|
| public float motorSpeed The desired motor speed in radians per second. | |
| referenceAngle | back to summary |
|---|---|
| public float referenceAngle The constrained angle between the bodies: body2_angle - body1_angle. | |
| upperTranslation | back to summary |
|---|---|
| public float upperTranslation The upper translation limit, usually in meters. | |
| PrismaticJointDef | back to summary |
|---|---|
| public PrismaticJointDef() | |
| initialize | back to summary |
|---|---|
| public void initialize(Body bodyA, Body bodyB, Vector2 anchor, Vector2 axis) Initialize the bodies, anchors, axis, and reference angle using the world anchor and world axis. | |