babylon.quarks - v0.19.0
    Preparing search index...

    Class VelocityOverLife

    Move particles with a direct velocity over their life (Unity's "Velocity over Lifetime"). Applied as a positional displacement, so it is not affected by speed modifiers, forces, or speed limits. Orbital speeds rotate particles around the emitter axes.

    Implements

    Index

    Constructors

    Properties

    _axisX: Vector3

    Axes the orbital speeds turn around, refreshed once per frame by frameUpdate. In world space they are the emitter's axes, which only change when the emitter does — so they are hoisted out of the per-particle work rather than rebuilt for every particle.

    _axisY: Vector3
    _axisZ: Vector3
    _temp: Vector3
    _tempEmitterPos: Vector3
    _tempQ: Quaternion
    _tempQInv: Quaternion
    _tempRot: Quaternion
    _tempScale: Vector3
    _tempScaleInv: Vector3

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

    type: string

    Methods

    • Parameters

      • delta: number

      Returns void

    • Returns void

    • Returns any

    • Parameters

      Returns void

    • Parameters

      • json: any

      Returns Behavior