Skip to main content

obstacle_avoidance

Function obstacle_avoidance 

Source
pub fn obstacle_avoidance(
    agent: &SteeringAgent,
    obstacles: &[(Vec2, f32)],
) -> Vec2
Expand description

Obstacle avoidance: steer around circular obstacles (center, radius).