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

    Class SizeBySpeed

    Sizes particles by their current speed, like Unity's Size by Speed: the speed (velocity length times the speed modifier) is placed in speedRange, clamped to 0..1, and the curve read there scales the start size.

    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

    • The behavior's settings as plain data, with its type; see the interface's description.

      Returns SizeBySpeedJSON

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

      Parameters

      Returns void