|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.badlogic.gdx.physics.box2d.Joint com.badlogic.gdx.physics.box2d.joints.FrictionJoint
public class FrictionJoint
Friction joint. This is used for top-down friction. It provides 2D translational friction and angular friction.
Constructor Summary | |
---|---|
FrictionJoint(World world,
long addr)
|
Method Summary | |
---|---|
float |
getMaxForce()
Get the maximum friction force in N. |
float |
getMaxTorque()
Get the maximum friction torque in N*m. |
void |
setMaxForce(float force)
Set the maximum friction force in N. |
void |
setMaxTorque(float torque)
Set the maximum friction torque in N*m. |
Methods inherited from class com.badlogic.gdx.physics.box2d.Joint |
---|
getAnchorA, getAnchorB, getBodyA, getBodyB, getReactionForce, getReactionTorque, getType, getUserData, isActive, setUserData |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FrictionJoint(World world, long addr)
Method Detail |
---|
public void setMaxForce(float force)
public float getMaxForce()
public void setMaxTorque(float torque)
public float getMaxTorque()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |