Potential Fields

Tune attraction to a goal and repulsion from obstacles to change how a swarm flows around them.

30 agents

What you are looking at

Agents
The robots moving under the combined forces.
Goal
The point attracting the agents.
Circular obstacles
Objects that repel nearby agents.

Try this

  1. Lower attraction toward zero to weaken the pull drawing agents toward the goal.
  2. Raise repulsion to make the obstacles push nearby agents away more strongly.

Key idea

A potential field guides motion with a force calculated at the robot’s current location.