babylon.quarks - v1.0.0
    Preparing search index...

    Interface FunctionValueGenerator

    A number that changes over time t in [0, 1] (a particle's life fraction, or the system's cycle): a curve (Unity's Curve).

    interface FunctionValueGenerator {
        type: "function";
        clone(): FunctionValueGenerator;
        genValue(memory: GeneratorMemory, t: number): number;
        refreshTable?(): void;
        reroll?(memory: GeneratorMemory): void;
        startGen(memory: GeneratorMemory): void;
        toJSON(): ValueGeneratorJSON;
    }

    Implemented by

    Index
    type: "function"

    'function': the number depends on t.

    • The number at t.

      Parameters

      Returns number

    • Optional hook for generators that can precompute a sampled table of themselves. Called once per frame by behaviors that evaluate the generator per particle, before any genValue of that frame, so a curve edited between frames is picked up.

      Returns void