UNPKG

@thi.ng/boids

Version:

n-dimensional boids simulation with modular behavior system

14 lines 598 B
import type { ReadonlyVec } from "@thi.ng/vectors"; import type { IBoidBehavior, ScalarOrField } from "../api.js"; /** * Similar to {@link attractPolyline}, but forces steering along the path in the * given order of points, using normalized `lookahead`. If `closed` is false, * the behavior becomes a no-op for boids at the end of the path. * * @param points * @param closed * @param lookahead * @param weight */ export declare const followPolyline: (points: ReadonlyVec[], closed: boolean, lookahead?: number, weight?: ScalarOrField) => IBoidBehavior; //# sourceMappingURL=follow.d.ts.map