Basics
Guides
API Reference
Basics
Guides
API Reference
[17:7] extends: FxObj
Wraps jbox2d's Joint abstract base (com.almasb.fxgl.physics.box2d.dynamics.joints.Joint). Holds the two connected bodies, the collide-connected flag, and the reaction force/torque queries used to read solver output. Direct construction goes through World.createJoint(def).
Joint ()
Empty default constructor; populated by adopt.
adopt (object Ajo)
Wraps an existing Joint AussomJavaObject.
getBodyA ()
Returns the first connected Body wrapper.
getBodyB ()
Returns the second connected Body wrapper.
getAnchorA (object OutVec)
Returns the anchor A in world coords (writes into Out since the upstream API is
getAnchorA(Vec2 out)).
OutVec is a Vec2 wrapper used as the output buffer.getAnchorB (object OutVec)
As getAnchorA but for body B.
getReactionForce (double InvDt, object OutVec)
Writes the reaction force (in N) for the given inverse time-step into Out.
getReactionTorque (double InvDt)
Returns the reaction torque (in N*m) for the inverse dt.
getCollideConnected ()
getUserData ()
setUserData (Data)

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