threejs-worldgen
    Preparing search index...

    Interface BirdSpecies

    A bird species. All plain JSON.

    interface BirdSpecies {
        biomes: Record<string, number>;
        colors: { back: string; belly: string; tip: string; tipLength: number };
        flight: {
            altitude: [number, number];
            flapAmplitude: number;
            flapRate: number;
            glide: number;
            overWater: boolean;
            speed: number;
        };
        flock: { roam: number; size: [number, number]; spacing: number };
        length: number;
        lengthVariation: number;
        name: string;
        shape: BirdShape;
    }
    Index
    biomes: Record<string, number>

    Biome ids it lives over, with weights (e.g. { coast: 1, deepOcean: 0.3 }).

    colors: { back: string; belly: string; tip: string; tipLength: number }

    Colours (#rrggbb).

    Type Declaration

    • back: string

      Back and upper wing.

    • belly: string

      Belly and under wing.

    • tip: string

      Wing tips.

    • tipLength: number

      Share of the span (from the tip) coloured tip.

    flight: {
        altitude: [number, number];
        flapAmplitude: number;
        flapRate: number;
        glide: number;
        overWater: boolean;
        speed: number;
    }

    Flight style.

    Type Declaration

    • altitude: [number, number]

      Height band above the ground (or water), metres.

    • flapAmplitude: number

      Wing beat amplitude, radians.

    • flapRate: number

      Wing beats per second.

    • glide: number

      0…1 share of time spent gliding.

    • overWater: boolean

      Whether it flies over water.

    • speed: number

      Cruising speed, m/s.

    flock: { roam: number; size: [number, number]; spacing: number }

    Flocking.

    Type Declaration

    • roam: number

      How far (metres) a flock roams from home.

    • size: [number, number]

      Birds per flock, [min, max].

    • spacing: number

      Distance kept between neighbours, metres.

    length: number

    Body length (beak to tail tip), metres.

    lengthVariation: number

    ± fraction of length varied per bird.

    name: string

    Display name.

    shape: BirdShape

    Shape.