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

java.lang.Object
  extended by com.badlogic.gdx.physics.box2d.JointDef
      extended by com.badlogic.gdx.physics.box2d.joints.FrictionJointDef

public class FrictionJointDef
extends JointDef

Friction joint definition.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.badlogic.gdx.physics.box2d.JointDef
JointDef.JointType
 
Field Summary
 Vector2 localAnchorA
          The local anchor point relative to bodyA's origin.
 Vector2 localAnchorB
          The local anchor point relative to bodyB's origin.
 float maxForce
          The maximum friction force in N.
 float maxTorque
          The maximum friction torque in N-m.
 
Fields inherited from class com.badlogic.gdx.physics.box2d.JointDef
bodyA, bodyB, collideConnected, type
 
Constructor Summary
FrictionJointDef()
           
 
Method Summary
 void initialize(Body bodyA, Body bodyB, Vector2 anchor)
          Initialize the bodies, anchors, axis, and reference angle using the world anchor and world axis.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

localAnchorA

public final Vector2 localAnchorA
The local anchor point relative to bodyA's origin.


localAnchorB

public final Vector2 localAnchorB
The local anchor point relative to bodyB's origin.


maxForce

public float maxForce
The maximum friction force in N.


maxTorque

public float maxTorque
The maximum friction torque in N-m.

Constructor Detail

FrictionJointDef

public FrictionJointDef()
Method Detail

initialize

public void initialize(Body bodyA,
                       Body bodyB,
                       Vector2 anchor)
Initialize the bodies, anchors, axis, and reference angle using the world anchor and world axis.



Copyright © 2013. All Rights Reserved.