public class MouseJoint extends Joint
addr, jointEdgeA, jointEdgeB
Constructor and Description |
---|
MouseJoint(World world,
long addr) |
Modifier and Type | Method and Description |
---|---|
float |
getDampingRatio()
Set/get the damping ratio (dimensionless).
|
float |
getFrequency()
Set/get the frequency in Hertz.
|
float |
getMaxForce()
Set/get the maximum force in Newtons.
|
Vector2 |
getTarget() |
void |
setDampingRatio(float ratio)
Set/get the damping ratio (dimensionless).
|
void |
setFrequency(float hz)
Set/get the frequency in Hertz.
|
void |
setMaxForce(float force)
Set/get the maximum force in Newtons.
|
void |
setTarget(Vector2 target)
Use this to update the target point.
|
getAnchorA, getAnchorB, getBodyA, getBodyB, getReactionForce, getReactionTorque, getType, getUserData, isActive, setUserData
public MouseJoint(World world, long addr)
public void setTarget(Vector2 target)
public Vector2 getTarget()
public void setMaxForce(float force)
public float getMaxForce()
public void setFrequency(float hz)
public float getFrequency()
public void setDampingRatio(float ratio)
public float getDampingRatio()