# Class PrismaticJointDef

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

public class PrismaticJointDef extends JointDef

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `boolean`
  `enableLimit`
  `boolean`
  `enableMotor`
  `final Vec2`
  `localAnchorA`
  `final Vec2`
  `localAnchorB`
  `final Vec2`
  `localAxisA`
  `float`
  `lowerTranslation`
  `float`
  `maxMotorForce`
  `float`
  `motorSpeed`
  `float`
  `referenceAngle`
  `float`
  `upperTranslation`

  ### Fields inherited from class JointDef

  `bodyA, bodyB, collideConnected, type, userData`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `PrismaticJointDef()`

- ## Method Summary

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

  ### Methods inherited from class Object

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

- ## Field Details

  - ### localAnchorA

    public final Vec2 localAnchorA

  - ### localAnchorB

    public final Vec2 localAnchorB

  - ### localAxisA

    public final Vec2 localAxisA

  - ### referenceAngle

    public float referenceAngle

  - ### enableLimit

    public boolean enableLimit

  - ### lowerTranslation

    public float lowerTranslation

  - ### upperTranslation

    public float upperTranslation

  - ### enableMotor

    public boolean enableMotor

  - ### maxMotorForce

    public float maxMotorForce

  - ### motorSpeed

    public float motorSpeed

- ## Constructor Details

  - ### PrismaticJointDef

    public PrismaticJointDef()

- ## Method Details

  - ### initialize

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