Basics
Guides
API Reference
Basics
Guides
API Reference
[20:7] extends: JointDef
Wraps jbox2d's PulleyJointDef (com.almasb.fxgl.physics.box2d.dynamics.joints.PulleyJointDef). Fields:
PulleyJointDef ()
Creates a new PulleyJointDef with defaults.
adopt (object Ajo)
Wraps an existing PulleyJointDef AussomJavaObject.
getGroundAnchorA ()
Returns the groundAnchorA field as a Vec2 wrapper.
getGroundAnchorB ()
Returns the groundAnchorB field as a Vec2 wrapper.
getLocalAnchorA ()
Returns the localAnchorA field as a Vec2 wrapper.
getLocalAnchorB ()
Returns the localAnchorB field as a Vec2 wrapper.
getLengthA ()
setLengthA (double V)
getLengthB ()
setLengthB (double V)
getRatio ()
setRatio (double V)
initialize (object BodyA, object BodyB, object GroundA, object GroundB, object AnchorA, object AnchorB, double Ratio)
Initialises this def from world anchors and a ratio.
BodyA, BodyB are Body wrappers.GroundA, GroundB are Vec2 wrappers with the fixed world anchors.AnchorA, AnchorB are Vec2 wrappers with the body anchors in world coords.Ratio is the pulley ratio.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.