Basics
Guides
API Reference
Basics
Guides
API Reference
[16:7] extends: Joint
Wraps jbox2d's MotorJoint (com.almasb.fxgl.physics.box2d.dynamics.joints.MotorJoint). Controls the relative motion between two bodies, typically the movement of a dynamic body relative to the ground.
MotorJoint ()
Empty default constructor; populated by adopt.
adopt (object Ajo)
Wraps an existing MotorJoint AussomJavaObject.
getCorrectionFactor ()
Returns the position correction factor in the range [0,1].
setCorrectionFactor (double Factor)
Sets the position correction factor in the range [0,1].
setLinearOffset (object OffsetVec)
Sets the target linear offset, in frame A, in meters.
OffsetVec is a Vec2 wrapper.getLinearOffset ()
Returns the current target linear offset, in frame A, as a Vec2 wrapper (do not modify the returned Vec2 directly; mutations bypass body wake-ups).
setAngularOffset (double AngularOffset)
Sets the target angular offset in radians.
getAngularOffset ()
Returns the target angular offset in radians.
setMaxForce (double Force)
Sets the maximum motor force in N.
getMaxForce ()
Returns the maximum motor force in N.
setMaxTorque (double Torque)
Sets the maximum motor torque in N*m.
getMaxTorque ()
Returns the maximum motor torque in N*m.

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