Basics
Guides
API Reference
Basics
Guides
API Reference
[22:7] extends: JointDef
Wraps jbox2d's ConstantVolumeJointDef (com.almasb.fxgl.physics.box2d.dynamics.joints.ConstantVolumeJointDef). Fields:
ConstantVolumeJointDef ()
Creates a new ConstantVolumeJointDef with defaults.
adopt (object Ajo)
Wraps an existing ConstantVolumeJointDef AussomJavaObject.
getFrequencyHz ()
setFrequencyHz (double V)
getDampingRatio ()
setDampingRatio (double V)
addBody (object BodyObj)
Adds a Body to the group. The first two added are also assigned to bodyA and bodyB on the JointDef base.
BodyObj is a Body wrapper.addBodyAndJoint (object BodyObj, object JointObj)
Adds a Body together with a pre-made DistanceJoint. Should only be used for deserialisation.
BodyObj is a Body wrapper.JointObj is a DistanceJoint wrapper.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.