Taos API Reference
    Preparing search index...

    Interface ParticleFeatureOptions

    interface ParticleFeatureOptions {
        config: ParticleGraphConfig;
        emitterTransform?: () => Mat4;
        name?: string;
    }
    Index

    Properties

    Initial particle graph config. Use ParticleFeature.setConfig to swap configs at runtime (the feature destroys the previous pass and builds a fresh one).

    emitterTransform?: () => Mat4

    Per-frame callback supplying the emitter world transform. Most demos pin the emitter to a fixed position; non-trivial uses (e.g. a particle attached to a moving object) read live state here.

    name?: string

    Stable name for engine lookup. Defaults to the class name; pass an override when registering multiple ParticleFeatures (e.g. block-break + explosion particles in the same scene).