Basics
Guides
API Reference
Basics
Guides
API Reference
[19:7] extends: Prism
Wraps FXGL's Cone, a Prism subclass whose top radius collapses to a point by default, producing a cone with a circular base. The default division count is 64 (CustomShape3D.DEFAULT_NUM_DIVISIONS), which is plenty for a smooth profile. Cone inherits the full Prism surface (bottomRadius, topRadius, height, numDivisions). Set a non-zero TopRadius to produce a conical frustum (lampshade).
Cone (double BottomRadius = 1.0, double TopRadius = 0.0, double Height = 2.0)
Creates a new Cone.
BottomRadius is the base radius (center to base vertex).TopRadius is the upper-face radius (default 0.0 collapses the top to a point); use a positive value for a frustum.Height is the cone height.adopt (object Ajo)
Wraps an existing Cone AussomJavaObject.
Ajo is an AussomJavaObject around a Cone.A new Cone wrapper.getBottomRadius ()
Returns the base radius.
getTopRadius ()
Returns the top radius.
getHeight ()
Returns the height.
getNumDivisions ()
Returns the side count.
setBottomRadius (double R)
Sets the base radius.
R is the new radius.this objectsetTopRadius (double R)
Sets the top radius.
R is the new radius.this objectsetHeight (double H)
Sets the cone height.
H is the new height.this objectsetNumDivisions (int N)
Sets the cone side count.
N is the new 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.
setMaterial (object MaterialObj)
Sets the cone material.
MaterialObj is a Material wrapper.this objectsetPhongMaterial (object ColorObj)
Sets a PhongMaterial directly from a Color.
ColorObj is a Color wrapper.this objectgetTranslation ()
Returns the (x, y, z) translation as a Point3D AJO.
setTranslation (double X, double Y, double Z)
Sets the (x, y, z) translation in one call.
getVertices ()
Returns the mesh vertex list for direct deformation.

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