alignment

fun <A : AgentLike> alignment(radius: Double): Force<A>(source)

Reynolds-rule alignment: steer toward the average velocity of neighbors within radius. Force is avg(neighbors.v) - my.v, so the magnitude scales with how off-heading this agent is from the local consensus.