# Class RevoluteJointDef

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

public class RevoluteJointDef extends JointDef

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `boolean`
  `enableLimit`
  `boolean`
  `enableMotor`
  `Vec2`
  `localAnchorA`
  `Vec2`
  `localAnchorB`
  `float`
  `lowerAngle`
  `float`
  `maxMotorTorque`
  `float`
  `motorSpeed`
  `float`
  `referenceAngle`
  `float`
  `upperAngle`

  ### Fields inherited from class JointDef

  `bodyA, bodyB, collideConnected, type, userData`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `RevoluteJointDef()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `initialize(Body b1, Body b2, Vec2 anchor)`

  ### Methods inherited from class Object

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

- ## Field Details

  - ### localAnchorA

    public Vec2 localAnchorA

  - ### localAnchorB

    public Vec2 localAnchorB

  - ### referenceAngle

    public float referenceAngle

  - ### enableLimit

    public boolean enableLimit

  - ### lowerAngle

    public float lowerAngle

  - ### upperAngle

    public float upperAngle

  - ### enableMotor

    public boolean enableMotor

  - ### motorSpeed

    public float motorSpeed

  - ### maxMotorTorque

    public float maxMotorTorque

- ## Constructor Details

  - ### RevoluteJointDef

    public RevoluteJointDef()

- ## Method Details

  - ### initialize

    public void initialize(Body b1, Body b2, Vec2 anchor)