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

    Interface TerrainOptions

    Common configuration options for terrain geometry.

    interface TerrainOptions {
        depth?: number;
        maxHeight?: number;
        meshDepthSegments?: number;
        meshWidthSegments?: number;
        width?: number;
    }

    Hierarchy (View Summary)

    Index

    Properties

    depth?: number

    The depth of the terrain in world units. Defaults to 100.

    maxHeight?: number

    The maximum height of the terrain. Defaults to 20.

    meshDepthSegments?: number

    The number of segments along the depth for the mesh. Defaults to 64.

    meshWidthSegments?: number

    The number of segments along the width for the mesh. Defaults to 64.

    width?: number

    The width of the terrain in world units. Defaults to 100.