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

    Class InheritVelocity

    Make particles inherit the emitter's movement velocity (Unity's "Inherit Velocity"). 'initial' adds the emitter velocity to the particle velocity once at spawn; 'current' displaces particles by the current emitter velocity every frame.

    Implements

    Index

    Learned in initialize, so undefined until this behavior sees a particle.

    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