Interface for particle behaviors. a behavior is a function that modifies a particle's properties over time.

interface Behavior {
    type: string;
    clone(): Behavior;
    frameUpdate(delta: number): void;
    initialize(particle: Particle, particleSystem: IParticleSystem): void;
    reset(): void;
    toJSON(): any;
    update(particle: Particle, delta: number): void;
}

Implemented by

Properties

type: string

Methods