Basics
Guides
API Reference
Basics
Guides
API Reference
[13:14] static extends: object
Helper for FXGL's BoundingShape sealed class hierarchy. Each factory returns a BoundingShape configured for a specific shape (circle, axis-aligned box, polygon, chain, 3D box). Use the result to add a HitBox to an Entity for collision detection or physics.
circle (double Radius)
Creates a circular bounding shape.
Radius is the circle radius in pixels.An AussomJavaObject wrapping a BoundingShape.box (double Width, double Height)
Creates an axis-aligned box bounding shape.
Width is the box width in pixels.Height is the box height in pixels.An AussomJavaObject wrapping a BoundingShape.polygon (list Points)
Creates a polygon bounding shape from a flat list of doubles in [x0, y0, x1, y1, ...] order.
Points is a list of doubles.An AussomJavaObject wrapping a BoundingShape.box3D (double Width, double Height, double Depth)
Creates a 3D axis-aligned box bounding shape.
Width is the box width.Height is the box height.Depth is the box depth.An AussomJavaObject wrapping a BoundingShape.chain (list Points)
Creates a chain bounding shape from a flat list of doubles in [x0, y0, x1, y1, ...] order. Chains are open polylines commonly used for static level geometry (ground, walls).
Points is a list of doubles.An AussomJavaObject wrapping a BoundingShape.getSize (object ShapeAjo)
Returns the bounding shape's overall size as a javafx Dimension2D AJO. Use
getWidth()/getHeight()on the returned AJO to read the extents.
ShapeAjo is a BoundingShape AJO (from one of the static factory methods above).An AussomJavaObject around a javafx.geometry.Dimension2D.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.