public class DistanceJointDef extends JointDef
JointDef.JointType
Modifier and Type | Field and Description |
---|---|
float |
dampingRatio
The damping ratio.
|
float |
frequencyHz
The mass-spring-damper frequency in Hertz.
|
float |
length
The natural length between the anchor points.
|
Vector2 |
localAnchorA
The local anchor point relative to body1's origin.
|
Vector2 |
localAnchorB
The local anchor point relative to body2's origin.
|
bodyA, bodyB, collideConnected, type
Constructor and Description |
---|
DistanceJointDef() |
Modifier and Type | Method and Description |
---|---|
void |
initialize(Body bodyA,
Body bodyB,
Vector2 anchorA,
Vector2 anchorB)
Initialize the bodies, anchors, and length using the world anchors.
|
public final Vector2 localAnchorA
public final Vector2 localAnchorB
public float length
public float frequencyHz
public float dampingRatio