babylon.quarks - v0.19.0
    Preparing search index...

    Interface FunctionValueGenerator

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

    Implemented by

    Index

    Properties

    type: "function"

    Methods

    • 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

    • Parameters

      Returns void