UNPKG

@thi.ng/boids

Version:

n-dimensional boids simulation with modular behavior system

13 lines 613 B
import type { Boid } from "../boid.js"; /** * Behavior update function (the default implementation fro * {@link BoidOpts.update}). Takes a single {@link Boid} and evaluates all of * its assigned behaviors (in the order given). If a behavior's weight evaluates * to zero, the behavior will be skipped, otherwise the returned force vector * will be added (multiplied with the behavior's current weight). Returns summed * force vector of all behaviors. * * @param boid */ export declare const blendedBehaviorUpdate: (boid: Boid) => import("@thi.ng/vectors").Vec<number>; //# sourceMappingURL=update.d.ts.map