/** * ParticleAffectors.ts * * Reusable affector functions that modify particles each frame. * Plug these into ParticleSystem.addAffector(). */ import type { Particle } from './ParticleSystem'; /** * Gravity: Constant downward acceleration. */ export declare function gravity(strength?: number): (p: Particle, delta: number) => void; /** * Wind: Constant force in a direction. */ export declare function wind(x: number, y: number, z: number): (p: Particle, delta: number) => void; /** * Turbulence: Random velocity perturbation based on pseudo-noise. */ export declare function turbulence(strength?: number): (p: Particle, delta: number) => void; /** * Drag: Velocity damping (air resistance). */ export declare function drag(coefficient?: number): (p: Particle, delta: number) => void; /** * Attractor: Pull particles toward a point. */ export declare function attractor(x: number, y: number, z: number, strength?: number, minDist?: number): (p: Particle, delta: number) => void; /** * Vortex: Spin particles around an axis. */ export declare function vortex(axisX: number, axisY: number, axisZ: number, strength?: number): (p: Particle, delta: number) => void; /** * Floor bounce: Bounce particles off a horizontal plane. */ export declare function floorBounce(floorY?: number, bounciness?: number): (p: Particle, delta: number) => void; /** * Size oscillation: Pulse size over lifetime. */ export declare function sizeOscillate(frequency?: number, amplitude?: number): (p: Particle, delta: number) => void; //# sourceMappingURL=ParticleAffectors.d.ts.map