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

    Class ChangeEmitDirection

    Turns each new particle's velocity away from its emit direction by angle (radians), about a random axis perpendicular to it, keeping its speed. angle may be a constant or a random range; it is rolled once per particle.

    Implements

    Index

    Scratch for the angle generator's per-spawn sample; cleared before every spawn.

    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