@dominicstop/utils
Version:
Yet another event emitter written in typescript.
16 lines • 592 B
TypeScript
import { AnyParticle } from "./AnyParticle";
/**
* * interface for forces that apply to a single particle based on its properties
* or external factors.
*/
export interface SomeParticleForce {
/**
* A flag to easily enable or disable the force.
* (Determines if this force currently active).
*/
isActive: boolean;
/** Applies a force to a given particle (e.g., attraction, damping). */
apply(particle: AnyParticle): void;
}
export declare function isSomeParticleForce(obj: unknown): obj is SomeParticleForce;
//# sourceMappingURL=SomeParticleForce.d.ts.map