|
libgdx API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.badlogic.gdx.physics.box2d.Joint
com.badlogic.gdx.physics.box2d.joints.DistanceJoint
public class DistanceJoint
A distance joint constrains two points on two bodies to remain at a fixed distance from each other. You can view this as a massless, rigid rod.
Field Summary |
---|
Fields inherited from class com.badlogic.gdx.physics.box2d.Joint |
---|
addr, jointEdgeA, jointEdgeB |
Constructor Summary | |
---|---|
DistanceJoint(World world,
long addr)
|
Method Summary | |
---|---|
float |
getDampingRatio()
Set/get damping ratio. |
float |
getFrequency()
Set/get frequency in Hz. |
float |
getLength()
Set/get the natural length. |
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. |
Methods inherited from class com.badlogic.gdx.physics.box2d.Joint |
---|
getAnchorA, getAnchorB, getBodyA, getBodyB, getReactionForce, getReactionTorque, getType, isActive |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DistanceJoint(World world, long addr)
Method Detail |
---|
public void setLength(float length)
public float getLength()
public void setFrequency(float hz)
public float getFrequency()
public void setDampingRatio(float ratio)
public float getDampingRatio()
|
libgdx API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |