Basics
Guides
API Reference
Basics
Guides
API Reference
[15:7] extends: CustomShape3D
Wraps FXGL's Prism, a CustomShape3D subclass that produces an N-sided prism (triangular at 3 divisions, square at 4, etc.). Configurable bottom radius, top radius (for a frustum effect), height, and division count.
Prism (double BottomRadius = 1.0, double TopRadius = 1.0, double Height = 2.0, int NumDivisions = 3)
Creates a new Prism.
BottomRadius is the lower-face radius.TopRadius is the upper-face radius.Height is the prism height.NumDivisions is the side count (3 for triangular, 4 for square, etc).adopt (object Ajo)
Wraps an existing Prism AussomJavaObject.
Ajo is an AussomJavaObject around a Prism.A new Prism wrapper.getBottomRadius ()
Returns the bottom radius.
A double.getTopRadius ()
Returns the top radius.
A double.getHeight ()
Returns the height.
A double.setMaterial (object MaterialObj)
Sets the material.
MaterialObj is a Material wrapper.this objectgetNumDivisions ()
Returns the side count.
setBottomRadius (double R)
Sets the lower-face radius.
R is the new radius.this objectsetTopRadius (double R)
Sets the upper-face radius.
R is the new radius.this objectsetHeight (double H)
Sets the prism height.
H is the new height.this objectsetNumDivisions (int N)
Sets the prism side count.
N is the new side count.this objectbottomRadiusProperty ()
Returns the bottom-radius DoubleProperty for binding.
topRadiusProperty ()
Returns the top-radius DoubleProperty for binding.
heightProperty ()
Returns the height DoubleProperty for binding.
numDivisionsProperty ()
Returns the divisions IntegerProperty for binding.
setPhongMaterial (object ColorObj)
Sets a PhongMaterial directly from a Color.
ColorObj is a Color wrapper.this objectgetTranslation ()
Returns the (x, y, z) translation.
setTranslation (double X, double Y, double Z)
Sets the (x, y, z) translation in one call.
getVertices ()
Returns the mesh vertex list.

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