libgdx API

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.


Field Summary
 
Fields inherited from class com.badlogic.gdx.physics.box2d.Joint
addr, jointEdgeA, jointEdgeB
 
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, isActive
 
Methods inherited from class java.lang.Object
clone, equals, finalize, 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.


libgdx API

Copyright 2010 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)