threejs-worldgen
    Preparing search index...

    Interface ExhaustState

    Per-vehicle state the emission reads between frames (acceleration from speed differences), and reused selection buffers.

    interface ExhaustState {
        accel: Float32Array;
        dist: Float32Array;
        pick: Int32Array;
        speed: Float32Array;
    }
    Index
    accel: Float32Array

    Smoothed acceleration, m/s².

    dist: Float32Array

    Distance to the eye this frame (scratch).

    pick: Int32Array

    Candidate vehicles, the nearest first after selection (scratch).

    speed: Float32Array

    Speed last frame, m/s.