steerkit Reynolds' steering behaviors, small and engine-agnostic

Cohesion

Each agent seeks the center of the neighbors it sees: what keeps a group together. On its own, cohesion clumps the agents into tight knots; flocking balances it with separation. Here it is blended with wander, so the groups keep moving.

  • velocity
  • desired velocity
  • steering force

TypeScript