steerkit Reynolds' steering behaviors, small and engine-agnostic

Path following

The agents follow a loop, like cars on a road: the path has a radius (the shaded band). Each one checks where it will be in lookAhead seconds: still on the road and heading along it, it goes its own way; off it, it steers back to a point further along. Separation keeps them from queuing in single file.

  • velocity
  • desired velocity
  • steering force

TypeScript