UNPKG

@dominicstop/utils

Version:

Yet another event emitter written in typescript.

24 lines 839 B
import { AnyParticle } from "./AnyParticle"; import { SomeSystemForce } from "./SomeSystemForce"; /** * Applies a repulsive force between overlapping particles * (to prevent or resolve overlap). */ export declare class RepulsionForce implements SomeSystemForce { /** * Repulsion strength constant (lambda) */ strength: number; /** * Maximum distance at which particles influence each other with this force; * If 0 or undefined, all pairs might be checked (less performant). */ influenceRadius: number; isActive: boolean; constructor(strength: number, influenceRadius?: number, isActive?: boolean); /** * Applies repulsive forces between all nearby overlapping particle pairs. */ applyToAll(particles: AnyParticle[]): void; } //# sourceMappingURL=RepulsionForce.d.ts.map