Foundry Virtual Tabletop - API Documentation - Version 14
    Preparing search index...

    Interface ParticleGeneratorBehavior

    interface ParticleGeneratorBehavior {
        initialize?: (generator: ParticleGenerator) => void;
        spawn?: (particle: ParticleInstance, ctx: object) => void;
        update?: (
            particle: ParticleInstance,
            dt: number,
            ctx: object,
        ) => boolean | void;
    }
    Index

    Properties

    initialize?: (generator: ParticleGenerator) => void

    Called once during construction.

    spawn?: (particle: ParticleInstance, ctx: object) => void

    Called for each spawned particle.

    update?: (particle: ParticleInstance, dt: number, ctx: object) => boolean | void

    Called for each particle during update. Return true to indicate the behavior handled positional integration for this particle.