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

    Interface Particle

    interface Particle {
        age: number;
        angularVelocity?: number | Quaternion;
        color: Vector4;
        emissionState?: EmissionState;
        life: number;
        memory: GeneratorMemory;
        parentMatrix?: Matrix4;
        position: Vector3;
        previousPosition?: Vector3;
        previousVelocity?: Vector3;
        rotation?: number | Quaternion;
        size: Vector3;
        speedModifier: number;
        startColor: Vector4;
        startSize: Vector3;
        startSpeed: number;
        uvTile: number;
        velocity: Vector3;
        get died(): boolean;
        reset(): void;
    }

    Hierarchy (View Summary)

    Implemented by

    Index

    Properties

    age: number

    Age of the particle.

    angularVelocity?: number | Quaternion

    How fast the particle is turning, as the behavior that turns it last left it: a rate in radians per second for a particle that rotates by an angle, or one simulation step's turn for one that rotates by quaternion.

    Written by the turning behaviors and read by the renderer, which draws between simulation steps and has no other way to continue the turn.

    color: Vector4

    Color of the particle.

    emissionState?: EmissionState

    Emission state of the particle.

    life: number

    Life duration of the particle.

    the memory of the particle.

    parentMatrix?: Matrix4

    Parent matrix for transformation.

    position: Vector3

    Position of the particle.

    previousPosition?: Vector3

    Where the particle was when the current simulation step began, when the implementation keeps it. A renderer draws between fixed steps and uses this to continue the motion the last step produced, whatever produced it.

    previousVelocity?: Vector3

    Velocity at the start of the current step, when the implementation keeps it. A stretched billboard is drawn from its velocity, so a renderer needs this to keep the sprite's shape moving between steps as its position does.

    rotation?: number | Quaternion

    Rotation of the particle.

    size: Vector3

    Size of the particle.

    speedModifier: number

    Speed modifier of the particle.

    startColor: Vector4

    Initial color of the particle.

    startSize: Vector3

    Initial size of the particle.

    startSpeed: number

    Initial speed of the particle.

    uvTile: number

    UV tile index.

    velocity: Vector3

    Velocity of the particle.

    Accessors

    • get died(): boolean

      Indicates if the particle has died.

      Returns boolean

    Methods

    • Returns void