Labs · Autonomous Agents
Obstacle Avoidance
A wandering vehicle needs to look ahead. Each frame it projects a feeler along its velocity (longer when moving faster) and checks whether that line passes too close to any obstacle. If it does, it steers sideways, away from the obstacle's centre, with a strength that grows as the obstacle gets closer.
A separate containment force keeps vehicles inside the walls. Combining behaviours by weighted sum is Reynolds' key insight: complex navigation from simple, independent urges.
Click to add obstacles (right-click removes them). Try to build a maze they must thread through.
Controls
- Vehicles
- Look-ahead distance
- Avoidance strength
- Max speed
- Show feelers
- Vehicle colour
- Obstacle colour
Evolved from Steering Behaviors.