Basics
Guides
API Reference
Basics
Guides
API Reference
[22:7] extends: JointDef
Wraps jbox2d's RevoluteJointDef (com.almasb.fxgl.physics.box2d.dynamics.joints.RevoluteJointDef). Fields:
RevoluteJointDef ()
Creates a new RevoluteJointDef with defaults.
adopt (object Ajo)
Wraps an existing RevoluteJointDef AussomJavaObject.
getLocalAnchorA ()
Returns the localAnchorA field as a Vec2 wrapper.
getLocalAnchorB ()
Returns the localAnchorB field as a Vec2 wrapper.
getReferenceAngle ()
setReferenceAngle (double V)
getEnableLimit ()
setEnableLimit (bool V)
getLowerAngle ()
setLowerAngle (double V)
getUpperAngle ()
setUpperAngle (double V)
getEnableMotor ()
setEnableMotor (bool V)
getMotorSpeed ()
setMotorSpeed (double V)
getMaxMotorTorque ()
setMaxMotorTorque (double V)
initialize (object BodyA, object BodyB, object Anchor)
Initialises this def from a world anchor.
BodyA, BodyB are Body wrappers.Anchor is a Vec2 wrapper in world coords.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.