com.badlogic.gdx.physics.box2d.joints
Class FrictionJoint
java.lang.Object
com.badlogic.gdx.physics.box2d.Joint
com.badlogic.gdx.physics.box2d.joints.FrictionJoint
public class FrictionJoint
- extends Joint
Friction joint. This is used for top-down friction. It provides 2D translational friction and angular friction.
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FrictionJoint
public FrictionJoint(World world,
long addr)
setMaxForce
public void setMaxForce(float force)
- Set the maximum friction force in N.
getMaxForce
public float getMaxForce()
- Get the maximum friction force in N.
setMaxTorque
public void setMaxTorque(float torque)
- Set the maximum friction torque in N*m.
getMaxTorque
public float getMaxTorque()
- Get the maximum friction torque in N*m.
Copyright 2010 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)