Two NetLogo models to simulate obstacle avoidance in a multi-agent system.
In this simulation obstacles can be drawn before and during simulation. Boids will try to avoid them while moving towards a target. The flock is attracted by the target's potential field.
Here the obstacles (trees) are generated in random positions each time we setup the simulation. Like the previous model the flock moves towards the target.
Download and install the NetLogo environment (https://ccl.northwestern.edu/netlogo/download.shtml). Simply open a model in NetLogo and have fun!