threejs-worldgen
    Preparing search index...

    Interface WorldLike

    The parts of a threejs-biomes World the sky reads (duck-typed, so there is no dependency). A planet world sets the home planet's radius and, in the local frame, the observer's latitude/longitude.

    interface WorldLike {
        onChange?: (listener: () => void) => () => void;
        options: { origin: [number, number]; radius: number; surface: string };
    }
    Index
    onChange?: (listener: () => void) => () => void

    Change subscription; returns an unsubscribe function.

    options: { origin: [number, number]; radius: number; surface: string }

    World options.

    Type Declaration

    • origin: [number, number]

      [latitude, longitude] of the local frame origin, degrees.

    • radius: number

      Planet radius, metres.

    • surface: string

      'sphere' for planets.