Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: NodeSkybox

[23:7] extends: Group

Wraps FXGL's NodeSkybox, the open base class for the FXGL skybox family. NodeSkybox is a JavaFX Group containing six child Groups (front, back, left, right, top, bot) arranged as the six faces of a cube around the camera. Each face Group is initially empty; Aussom users typically subclass NodeSkybox in Kotlin / Java for fully custom faces, or use ImageSkybox / CanvasSkybox for the two ready-made concrete subclasses. NodeSkybox extends Group, which extends Node, so this wrapper extends the existing fx Group base.

Methods

  • NodeSkybox (int Size = 32)

    Creates a new NodeSkybox with the given side length. Each face is rendered Size * 32 units across (NodeSkybox's internal scale factor is 32.0).

    • @p Size is the per-face size before the 32x scale factor.
  • adopt (object Ajo)

    Wraps an existing NodeSkybox AussomJavaObject (typically one returned from SkyboxBuilder).

    • @p Ajo is an AussomJavaObject around a NodeSkybox.
    • @r A new NodeSkybox wrapper.
  • getSize ()

    Returns the configured per-face size (before the 32x scale).

  • getScale ()

    Returns the internal scale multiplier (32.0).

  • getFront ()

    Returns the front face Group AJO.

  • getBack ()

    Returns the back face Group AJO.

  • getLeft ()

    Returns the left face Group AJO.

  • getRight ()

    Returns the right face Group AJO.

  • getTop ()

    Returns the top face Group AJO.

  • getBot ()

    Returns the bottom face Group AJO.