Creating Intelligent Enemies – Navigation

In Chapters 7, Creating Artificial Intelligence and Chapter 8, Continuing with Intelligent Enemies we saw how to create enemy AI, and we'll apply that knowledge again here to create droids using a simple Finite State Machine (FSM). The droid will be constructed as a Prefab. To start, drag and drop a Droid mesh into the scene. See Figure 10.4:

Creating Intelligent Enemies – Navigation

Figure 10.4: Creating an Enemy Droid

The enemy droid mesh will form part of a more complex object. The mesh itself is a fraction of the whole. To start building the droid enemy, create an empty object, named Enemy, and make the droid mesh a child of it.

Ensure the empty ...

Get Unity 2018 By Example - Second 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.