# Class FrictionJointDef

java.lang.Object
com.codename1.gaming.physics.box2d.dynamics.joints.JointDef
com.codename1.gaming.physics.box2d.dynamics.joints.FrictionJointDef

public class FrictionJointDef extends JointDef
Friction joint definition.

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `final Vec2`
  `localAnchorA`
  The local anchor point relative to bodyA's origin.
  `final Vec2`
  `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 JointDef

  `bodyA, bodyB, collideConnected, type, userData`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `FrictionJointDef()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `initialize(Body bA, Body bB, Vec2 anchor)`
  Initialize the bodies, anchors, axis, and reference angle using the world anchor and world axis.

  ### Methods inherited from class Object

  `clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Field Details

  - ### localAnchorA

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

  - ### localAnchorB

    public final Vec2 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 Details

  - ### FrictionJointDef

    public FrictionJointDef()

- ## Method Details

  - ### initialize

    public void initialize(Body bA, Body bB, Vec2 anchor)
    Initialize the bodies, anchors, axis, and reference angle using the world anchor and world axis.