Basics
Guides
API Reference
Basics
Guides
API Reference
[18:7] extends: Group
Wraps FXGL's Model3D, a JavaFX Group subclass that holds one or more MeshView nodes (and optionally nested Model3Ds) as a single composite 3D object. Set a Material once on the model and every contained MeshView inherits it. Model3D extends Group in Java, so this wrapper extends the fx Group wrapper for composition with the existing layout API.
Model3D ()
Creates a new empty Model3D.
adopt (object Ajo)
Wraps an existing Model3D AussomJavaObject (e.g. one returned from Model3DLoader.load).
Ajo is an AussomJavaObject around a Model3D.A new wrapper.addMeshView (object MeshViewObj)
Adds a MeshView to the model.
MeshViewObj is a MeshView wrapper.this objectaddModel (object ModelObj)
Adds a nested Model3D.
ModelObj is a Model3D wrapper.this objectsetMaterial (object MaterialObj)
Sets the material applied to every MeshView inside this model (and nested Model3Ds).
MaterialObj is a Material wrapper.this objectcopy ()
Returns a deep copy of this model.
A new Model3D wrapper.getMaterial ()
Returns the model's current material.
An AussomJavaObject around a Material.removeMeshView (object MeshViewObj)
Removes a MeshView previously added.
MeshViewObj is the MeshView wrapper.this objectremoveModel (object ModelObj)
Removes a nested Model3D previously added.
ModelObj is the Model3D wrapper.this objectgetModels ()
Returns the contained Model3Ds as an AussomJavaObject around a List.
An AussomJavaObject around a ListgetMeshViews ()
Returns the contained MeshViews as an AussomJavaObject around a List.
An AussomJavaObject around a ListgetVertices ()
Returns every vertex from every contained mesh for direct deformation.
An AussomJavaObject around a List
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.