UNPKG

@thi.ng/boids

Version:

n-dimensional boids simulation with modular behavior system

16 lines (15 loc) 263 B
const noAccel = () => { let boids; return { build($boids) { boids = $boids; }, queryNeighborhood(neighborhood) { for (let b of boids) neighborhood.consider(b.pos.curr, b); return neighborhood; } }; }; export { noAccel };