com.badlogic.gdx.physics.box2d.joints
Class FrictionJoint

java.lang.Object
  extended by com.badlogic.gdx.physics.box2d.Joint
      extended by 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.


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

FrictionJoint

public FrictionJoint(World world,
                     long addr)
Method Detail

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 © 2013. All Rights Reserved.