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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.