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

    Class RotationBySpeed

    Turns particles at a rate read off their current speed, like Unity's Rotation by Speed: the speed (velocity length times the speed modifier) is placed in speedRange, clamped to 0..1. Billboards only; particles rotating by quaternion are left alone.

    Implements

    Index
    speedRange: IntervalValue
    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