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

    Interface RotationGenerator

    A rotation for a particle: a start rotation, or a rotation per second over its life.

    interface RotationGenerator {
        type: "rotation";
        clone(): RotationGenerator;
        genValue(
            memory: GeneratorMemory,
            q: Quaternion,
            delta: number,
            t: number,
        ): Quaternion;
        startGen(memory: GeneratorMemory): void;
        toJSON(): RotationGeneratorJSON;
    }

    Implemented by

    Index
    type: "rotation"

    Always 'rotation'.

    • Writes into q the rotation over delta seconds at time t (for a start rotation, delta is 1).

      Parameters

      Returns Quaternion

      q.

    • Rolls whatever the generator picks at random into memory.

      Parameters

      Returns void