Basics
Guides
API Reference
Basics
Guides
API Reference
[15:7] extends: CustomShape3D
Wraps FXGL's Cuboid, a CustomShape3D subclass that mirrors JavaFX Box but with observable width / height / depth properties usable for animations and bindings. Add to a Group inside a fx.SubScene with a PerspectiveCamera to render.
Cuboid (double Width = 2.0, double Height = 2.0, double Depth = 2.0)
Creates a new Cuboid.
Width is the X extent.Height is the Y extent.Depth is the Z extent.getWidth ()
Returns the cuboid width.
A double.getHeight ()
Returns the cuboid height.
A double.getDepth ()
Returns the cuboid depth.
A double.setWidth (double W)
Sets the cuboid width.
W is the new width.this objectsetHeight (double H)
Sets the cuboid height.
H is the new height.this objectsetDepth (double D)
Sets the cuboid depth.
D is the new depth.this objectsetMaterial (object MaterialObj)
Sets the cuboid material (PhongMaterial).
MaterialObj is a Material wrapper.this objectsetPhongMaterial (object ColorObj)
Sets a PhongMaterial directly from a Color, sparing the caller from constructing one explicitly.
ColorObj is a Color wrapper.this objectgetTranslation ()
Returns the (x, y, z) translation as a Point3D AJO.
An AussomJavaObject around a Point3D.setTranslation (double X, double Y, double Z)
Sets the (x, y, z) translation in one call.
X is the X translation.Y is the Y translation.Z is the Z translation.this objectgetVertices ()
Returns the mesh vertex list for direct deformation.
An AussomJavaObject around a ListwidthProperty ()
Returns the width DoubleProperty for binding.
heightProperty ()
Returns the height DoubleProperty for binding.
depthProperty ()
Returns the depth DoubleProperty for binding.

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