The scene layout

Now that we have all of our code covered, let's take a look at our scene. Our sample scene looks like the following screenshot:

An overview of our scene layout

As you can see in the preceding screenshot, there isn't a lot of complexity to our setup. We have a plane, some environment cubes for perspective, a light, a camera, and our target. The full hierarchy looks like the following screenshot:

Our scene hierarchy with FlockController highlighted

As you can see from the preceding screenshot, we have a Directional light, and ...

Get Unity 2017 Game AI Programming - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.