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

    Class RandomizeDirection

    Blends each new particle's direction toward a uniformly random one, keeping its speed: Unity's Shape module Randomize Direction. At amount 0 the emitter's direction is kept, at 1 every particle leaves in a random direction; between, the direction is the normalized mix of the two.

    Implements

    Index
    • Parameters

      • amount: number

        How far each direction blends toward a random one, 0 to 1; clamped.

      Returns RandomizeDirection

    amount: number
    type: string

    The name the behavior is registered under in BehaviorTypes.

    • A copy with the same settings that shares nothing mutable with this one.

      Returns Behavior

    • Called once per step before this behavior updates the particles, with the step's length in seconds.

      Parameters

      • delta: number

      Returns void

    • Called once per particle when it is emitted; see the interface's description for when.

      Parameters

      Returns void

    • Called when the system restarts (not when a looping system starts its next loop): forget state accumulated across steps, so the replay starts as the first play did.

      Returns void

    • Called once per live particle per step, with the step's length in seconds.

      Parameters

      Returns void