pixi.js
    Preparing search index...

    Interface ParticleProperties

    Represents the properties of a particle that can be dynamically updated each frame. These properties control which aspects of particles are recalculated during rendering. Setting a property to true enables per-frame updates, while false only updates when manually triggered.

    // Create a particle container with dynamic position and rotation
    const container = new ParticleContainer({
    dynamicProperties: {
    position: true, // Update positions each frame
    rotation: true, // Update rotations each frame
    vertex: false, // Static vertices
    uvs: false, // Static texture coordinates
    color: false // Static colors
    }
    });

    // Create a fully dynamic particle container
    const dynamicContainer = new ParticleContainer({
    dynamicProperties: {
    vertex: true, // Dynamic mesh deformation
    position: true, // Dynamic movement
    rotation: true, // Dynamic spinning
    uvs: true, // Dynamic texture animation
    color: true // Dynamic coloring
    }
    });
    interface ParticleProperties {
        color?: boolean;
        position?: boolean;
        rotation?: boolean;
        uvs?: boolean;
        vertex?: boolean;
    }
    Index

    Properties

    color?: boolean

    When true, color values are updated each frame. Enables color transitions and alpha changes.

    false
    
    position?: boolean

    When true, particle positions are updated each frame. Essential for moving particles.

    true
    
    rotation?: boolean

    When true, rotation values are updated each frame. Needed for spinning particles.

    false
    
    uvs?: boolean

    When true, texture coordinates are updated each frame. Required for texture animation.

    false
    
    vertex?: boolean

    When true, vertex positions are updated each frame. Useful for mesh deformation effects.

    false