public class DistanceJointDef extends JointDef
Modifier and Type | Field and Description |
---|---|
float |
dampingRatio
The damping ratio.
|
float |
frequencyHz
The mass-spring-damper frequency in Hertz.
|
float |
length
The equilibrium length between the anchor points.
|
Vec2 |
localAnchorA
The local anchor point relative to body1's origin.
|
Vec2 |
localAnchorB
The local anchor point relative to body2's origin.
|
Constructor and Description |
---|
DistanceJointDef() |
Modifier and Type | Method and Description |
---|---|
void |
initialize(Body b1,
Body b2,
Vec2 anchor1,
Vec2 anchor2)
Initialize the bodies, anchors, and length using the world
anchors.
|
public final Vec2 localAnchorA
public final Vec2 localAnchorB
public float length
public float frequencyHz
public float dampingRatio
Copyright © 2017. All Rights Reserved.