Skip to main content

evade

Function evade 

Source
pub fn evade(agent: &SteeringAgent, threat_pos: Vec2, threat_vel: Vec2) -> Vec2
Expand description

Evade: flee from the predicted future position of a threat.