threejs-worldgen
    Preparing search index...

    Interface ExhaustVent

    Where engine smoke leaves a vehicle (threejs-particles exhaust, see VehicleExhaust): car tailpipes, truck and tractor stacks, locomotive chimneys. Electric vehicles have none.

    interface ExhaustVent {
        direction: Vec3;
        kind: "tailpipe" | "stack" | "steam" | "diesel";
        position: Vec3;
        pulse?: number;
        radius: number;
    }
    Index
    direction: Vec3

    Unit direction the gas leaves in, vehicle space.

    kind: "tailpipe" | "stack" | "steam" | "diesel"

    What comes out: faint tailpipe exhaust, diesel stack smoke, a steam locomotive's plume, a diesel locomotive's haze.

    position: Vec3

    Outlet, vehicle space.

    pulse?: number

    Steam engines: metres travelled per exhaust beat (chuffs come at speed / pulse per second).

    radius: number

    Outlet radius, metres.