steerkit Reynolds' steering behaviors, small and engine-agnostic

Wander

A random walk that looks natural. The agent seeks a point on a circle ahead of it (dashed), and that point drifts a little at random every frame, so the heading changes in smooth curves instead of trembling. A larger radius turns sharper, a longer distance smoother, a higher jitter more often. In 3D, the circle is a sphere; here it's kept in the xy plane.

  • velocity
  • desired velocity
  • steering force

TypeScript