threejs-worldgen
    Preparing search index...

    Interface VehicleProps

    Props of <Vehicle>: every VehicleSettings setting plus a ref and an environment.

    interface VehicleProps {
        crumple?: number;
        env?: FleetEnvironment;
        heading?: number;
        launch?: boolean;
        lights?: number;
        params?: VehicleParams;
        period?: number;
        ref?: Ref<Vehicle | null>;
        seed?: string | number;
        speed?: number;
        states?: MaterialStates & { heat: number };
        tint?: string;
        type?: VehicleType;
    }

    Hierarchy

    Index
    crumple?: number

    Dent depth at full damage, metres.

    Weather, fire and ground states it reacts to.

    heading?: number

    Heading, radians.

    launch?: boolean

    Rockets: launch (and relaunch every period seconds) instead of standing on the pad.

    lights?: number

    Headlights and lit windows, 0…1.

    params?: VehicleParams

    Type parameters.

    period?: number

    Launch period, seconds.

    ref?: Ref<Vehicle | null>

    Receives the underlying Vehicle.

    seed?: string | number

    Seed: drives proportions, style and details.

    speed?: number

    Speed its parts animate at (wheels, fans), m/s; it stays in place.

    states?: MaterialStates & { heat: number }

    Wetness, snow, burn, damage and heat (on fire).

    tint?: string

    Body paint (#rrggbb), or '' for a seeded palette colour.

    Type.