Small World Engine API Reference - v0.46.1
    Preparing search index...

    Class TerrainManager

    Manages dynamic loading and unloading of terrain chunks to create an "infinite" terrain feel. Chunks are loaded around a specific focus point (usually the player).

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Initializes the manager and generates the initial grid of chunks. Also ensures default biome textures are loaded if missing.

      Returns Promise<void>

    • Updates the terrain grid based on a focus point (e.g. player position). Triggers rebuilding of the grid if the focus point moves to a new chunk.

      Parameters

      • focusPoint: Vector3D

        The current focus position.

      Returns Promise<void>