Without having to do anything else in our code, we can make a few changes to our scene layout and enable a few components provided by Unity to dramatically alter the behavior of our agents. In our CrowdsObstacles scene, we've added a few walls to the environment, creating a maze-like layout for our red and blue teams of capsules to traverse, as you can see in the following screenshot:
The fun part about this example is that, because of the randomized speed of each agent, the results will be totally different each time you run the game. As the agents move through the environment, they'll be blocked ...