Skip to main content

wall_avoidance

Function wall_avoidance 

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

Wall avoidance: steer away from line-segment walls (a, b).