Flocks and crowds are two additional core AI concepts we'll be exploring in this book. As you'll see in this chapter, flocks are relatively simple to implement, and they add a fairly extraordinary amount of realism to your simulation in just a few lines of code. Crowds can be a bit more complex, but we'll be exploring some of the powerful tools that come bundled with Unity to get the job done. In this chapter, we'll cover the following topics:
- Learning the history of flocks and herds
- Understanding the concepts behind flocks
- Flocking using the traditional algorithm
- Using realistic crowds