Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: RopeJointDef

[18:7] extends: JointDef

Wraps jbox2d's RopeJointDef (com.almasb.fxgl.physics.box2d.dynamics.joints.RopeJointDef). Fields:

  • localAnchorA / localAnchorB — anchor points in body-local coords.
  • maxLength — maximum rope length; must exceed JBoxSettings.linearSlop or the joint has no effect.

Methods

  • RopeJointDef ()

    Creates a new RopeJointDef with defaults.

  • adopt (object Ajo)

    Wraps an existing RopeJointDef AussomJavaObject.

  • getLocalAnchorA ()

    Returns the localAnchorA field as a Vec2 wrapper.

  • getLocalAnchorB ()

    Returns the localAnchorB field as a Vec2 wrapper.

  • getMaxLength ()

  • setMaxLength (double V)