| Modifier and Type | Field and Description |
|---|---|
| public float | dampingRatio
The damping ratio. |
| public float | frequencyHz
The mass-spring-damper frequency in Hertz. |
| 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 | referenceAngle
The body2 angle minus body1 angle in the reference state (radians). |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | initialize(Body body1, Body body2, Vector2 anchor)
Initialize the bodies, anchors, and reference angle using a world anchor point. |
| dampingRatio | back to summary |
|---|---|
| public float dampingRatio The damping ratio. 0 = no damping, 1 = critical damping. | |
| frequencyHz | back to summary |
|---|---|
| public float frequencyHz The mass-spring-damper frequency in Hertz. Rotation only. Disable softness with a value of 0. | |
| 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. | |
| referenceAngle | back to summary |
|---|---|
| public float referenceAngle The body2 angle minus body1 angle in the reference state (radians). | |
| WeldJointDef | back to summary |
|---|---|
| public WeldJointDef() | |
| initialize | back to summary |
|---|---|
| public void initialize(Body body1, Body body2, Vector2 anchor) Initialize the bodies, anchors, and reference angle using a world anchor point. | |