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

    Class SpriteParticle

    Particle implementation for sprite-based particle.

    Implements

    Index

    Constructors

    • Parameters

      • Optionalstore: ParticleStore

        Column storage to bind to. A private single-row store is created when omitted, so a standalone new SpriteParticle() still works.

      • OptionalstoreIndex: number

        Row this particle owns.

      Returns SpriteParticle

    Properties

    angularVelocity?: number | Quaternion

    Angular velocity of the particle.

    color: Vector4

    Color of the particle.

    memory: never[]

    the memory of the particle.

    parentMatrix?: Matrix4

    Parent matrix for transformation.

    position: Vector3

    Position of the particle.

    previousPosition: Vector3

    Where this particle was when the current simulation step began; see Particle.previousPosition.

    previousVelocity: Vector3

    Velocity at the start of the current step; see Particle.previousVelocity.

    rotation: number | Quaternion

    Rotation of the particle.

    scalarOffset: number
    scalars: Float64Array

    Row of the store's interleaved scalars this particle owns.

    size: Vector3

    Size of the particle.

    startColor: Vector4

    Initial color of the particle.

    startSize: Vector3

    Initial size of the particle.

    startSpeed: number

    Initial speed of the particle.

    Column storage backing this particle's vector attributes.

    storeIndex: number

    Row this particle occupies in store.

    uvTile: number

    UV tile index.

    velocity: Vector3

    Velocity of the particle.

    Accessors

    • get age(): number

      Age of the particle.

      Returns number

    • set age(value: number): void

      Age of the particle.

      Parameters

      • value: number

      Returns void

    • get died(): boolean

      Indicates if the particle has died.

      Returns boolean

    • get life(): number

      Life duration of the particle.

      Returns number

    • set life(value: number): void

      Life duration of the particle.

      Parameters

      • value: number

      Returns void

    • get speedModifier(): number

      Speed modifier of the particle.

      Returns number

    • set speedModifier(value: number): void

      Speed modifier of the particle.

      Parameters

      • value: number

      Returns void

    Methods

    • Re-points the vector views after the store grew its arrays.

      Returns void

    • Returns void

    • Moves this particle onto a different store row. The caller is responsible for having moved the row contents too.

      Parameters

      • index: number

      Returns void