# Class RopeJointDef

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

public class RopeJointDef extends JointDef
Rope joint definition. This requires two body anchor points and a maximum lengths. Note: by default the connected objects will not collide. see collideConnected in b2JointDef.

- ## 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`
  `maxLength`
  The maximum length of the rope.

  ### Fields inherited from class JointDef

  `bodyA, bodyB, collideConnected, type, userData`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `RopeJointDef()`

- ## Method Summary

  ### 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.

  - ### maxLength

    public float maxLength
    The maximum length of the rope. Warning: this must be larger than b2_linearSlop or the joint will have no effect.

- ## Constructor Details

  - ### RopeJointDef

    public RopeJointDef()