cohesion

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

Reynolds-rule cohesion: steer toward the average position of neighbors within radius. Computed as the average of torus- aware deltas (via ContinuousProjection.delta) so it works correctly across wrap boundaries — averaging absolute positions would break for a peer just over the wrap.