@pixi/3d
    Preparing search index...

    Type Alias ParticleSpawnOverrides<B>

    ParticleSpawnOverrides: ParticleSpawnBuiltInOverrides & {
        [K in keyof ParticleDeclaredValues<B>]?: ParticleSpawnValue<
            NonNullable<ParticleDeclaredValues<B>[K]>,
        >
    }

    Per-spawn overrides for ParticleSystem3D.spawn

    Anything omitted comes from the system's options, or is zero for an attribute from extraBits. position and velocity are in world space unless the system was built with space: 'local'. An attribute the system's extraBits declare is accepted under its own name, shaped by its format, and type-checked when the bit was declared with satisfies ShaderBit.

    Type Parameters

    const windBit = { name: 'wind', attributes: { aWind: 'float32x3' } } satisfies ShaderBit;
    const leaves = new ParticleSystem3D({ extraBits: [windBit] });

    leaves.spawn(10, { aWind: { x: 1, y: 0, z: 0 }, life: 4 });