public class DistanceJoint extends Joint
addr, jointEdgeA, jointEdgeB
Constructor and Description |
---|
DistanceJoint(World world,
long addr) |
Modifier and Type | Method and Description |
---|---|
float |
getDampingRatio()
Set/get damping ratio.
|
float |
getFrequency()
Set/get frequency in Hz.
|
float |
getLength()
Set/get the natural length.
|
Vector2 |
getLocalAnchorA() |
Vector2 |
getLocalAnchorB() |
void |
setDampingRatio(float ratio)
Set/get damping ratio.
|
void |
setFrequency(float hz)
Set/get frequency in Hz.
|
void |
setLength(float length)
Set/get the natural length.
|
getAnchorA, getAnchorB, getBodyA, getBodyB, getCollideConnected, getReactionForce, getReactionTorque, getType, getUserData, isActive, setUserData
public DistanceJoint(World world, long addr)
public Vector2 getLocalAnchorA()
public Vector2 getLocalAnchorB()
public void setLength(float length)
public float getLength()
public void setFrequency(float hz)
public float getFrequency()
public void setDampingRatio(float ratio)
public float getDampingRatio()