Basics
Guides
API Reference
Basics
Guides
API Reference
[21:7] extends: JointDef
Wraps jbox2d's MotorJointDef (com.almasb.fxgl.physics.box2d.dynamics.joints.MotorJointDef). Fields:
MotorJointDef ()
Creates a new MotorJointDef with defaults.
adopt (object Ajo)
Wraps an existing MotorJointDef AussomJavaObject.
getLinearOffset ()
Returns the linearOffset field as a Vec2 wrapper.
getAngularOffset ()
setAngularOffset (double V)
getMaxForce ()
setMaxForce (double V)
getMaxTorque ()
setMaxTorque (double V)
getCorrectionFactor ()
setCorrectionFactor (double V)
initialize (object BodyA, object BodyB)
Initialises this def from two Body wrappers, capturing the current relative offset and angle.

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