Basics
Guides
API Reference
Basics
Guides
API Reference
[18:7] extends: Joint
Wraps jbox2d's RopeJoint (com.almasb.fxgl.physics.box2d.dynamics.joints.RopeJoint). Enforces a maximum distance between two points on two bodies. Changing the maximum length during simulation can produce non-physical behaviour; see DistanceJoint for dynamic length control.
RopeJoint ()
Empty default constructor; populated by adopt.
adopt (object Ajo)
Wraps an existing RopeJoint AussomJavaObject.
getLocalAnchorA ()
Returns the local anchor on body A as a Vec2 wrapper.
getLocalAnchorB ()
Returns the local anchor on body B as a Vec2 wrapper.
getMaxLength ()
Returns the maximum rope length.
setMaxLength (double MaxLength)
Sets the maximum rope length.
getLimitState ()
Returns the current limit state as a LimitState enum AJO.

Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.