Skip to main content

cohesion

Function cohesion 

Source
pub fn cohesion(agent: &SteeringAgent, neighbors: &[&SteeringAgent]) -> Vec2
Expand description

Cohesion: steer toward the center of nearby agents.