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