Interface IParticlesInteractor<TParticle>

interface IParticlesInteractor {
    loadOptions?: ((options, ...sources) => void);
    loadParticlesOptions?: ((options, ...sources) => void);
    type: InteractorType;
    clear(particle, delta): void;
    init(): void;
    interact(particle, delta): Promise<void>;
    isEnabled(particle): boolean;
    reset(particle): void;
}

Type Parameters

Hierarchy

Implemented by

Properties

loadOptions?: ((options, ...sources) => void)

Type declaration

loadParticlesOptions?: ((options, ...sources) => void)

Type declaration

Methods

  • Parameters

    • particle: TParticle
    • delta: IDelta

    Returns void

  • Returns void

  • Parameters

    • particle: TParticle
    • delta: IDelta

    Returns Promise<void>

  • Parameters

    • particle: TParticle

    Returns boolean

  • Parameters

    • particle: TParticle

    Returns void