threejs-worldgen
    Preparing search index...

    Interface FleetGroup

    One group of vehicles of one type sharing a route. Plain JSON.

    interface FleetGroup {
        count: number;
        lane?: number;
        params?: VehicleParams;
        route: RouteSpec;
        speed?: [min: number, max: number];
        tint?: string;
        type: VehicleType;
        variants?: number;
    }
    Index
    count: number

    Units: vehicles, or whole trains (locomotive plus params.wagons wagons).

    lane?: number

    Metres to the right of a path (roads use their own lanes).

    params?: VehicleParams

    Type parameters (see VEHICLE_KINDS).

    route: RouteSpec

    Route.

    speed?: [min: number, max: number]

    Cruise speed range, m/s. Default depends on the type.

    tint?: string

    Paint every unit this colour (#rrggbb) instead of picking from the model's palette.

    Vehicle type.

    variants?: number

    Distinct generated models the units cycle through (more = more variety, more draw calls). Default 4.