Labs · Autonomous Agents
Steering Behaviors
An autonomous agent picks its own forces. Craig Reynolds' formula is the core of it: steering = desired velocity − current velocity, capped at a max force. Lowering max force makes the vehicle less agile.
- Seek: desired velocity points straight at the target, so the vehicle overshoots and loops.
- Arrive: inside the slowing radius, desired speed scales down with distance, so it parks smoothly.
- Flee: desired velocity points away from the mouse when it gets too close.
- Wander: steers toward a point that drifts around a circle projected ahead, giving natural, meandering motion.
With debug on: green = velocity, blue = desired velocity, red = steering force.
Controls
- Behavior
- Vehicles
- Max speed
- Max force
- Slowing / flee radius
- Debug drawing
Evolved into Path Following, Obstacle Avoidance.