mwg API
    Preparing search index...

    Interface LightningArcOptions

    interface LightningArcOptions {
        duration?: number;
        flickerInterval?: number;
        jitter?: number;
        random?: () => number;
        segments?: number;
    }
    Index
    duration?: number

    seconds this arc lives before done becomes true; omit for a bolt with no lifetime of its own

    flickerInterval?: number

    seconds between re-rolling the jitter, so a held tether flickers; omit to jitter once and hold

    jitter?: number

    perpendicular jitter amplitude in world units, tapering to 0 at both endpoints; default 12

    random?: () => number

    injectable RNG (0 to 1) for a reproducible bolt shape; defaults to Math.random

    segments?: number

    how many jittered points along the line, between the two fixed endpoints; default 6