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

    Interface Vector3Generator

    A vector for a particle, from a number generator per axis.

    interface Vector3Generator {
        type: "vec3function";
        clone(): Vector3Generator;
        genValue(memory: GeneratorMemory, vec: Vector3, t?: number): Vector3;
        refreshTable?(): void;
        startGen(memory: GeneratorMemory): void;
        toJSON(): Vector3FunctionJSON;
    }

    Implemented by

    Index
    type: "vec3function"

    Always 'vec3function'.

    • A copy with the same settings.

      Returns Vector3Generator

    • Writes the vector at time t into vec.

      Parameters

      Returns Vector3

      vec.

    • See FunctionValueGenerator.refreshTable.

      Returns void

    • Rolls whatever the generator picks at random into memory.

      Parameters

      Returns void