Game Development Reference
In-Depth Information
Defining a connection between off-mesh links
The starting project for this chapter, ready for AI coding, can be
found in the topic's companion iles (code bundle) in the Start
folder of this chapter.
Starting an NPC agent
Now, let's create an AI agent for the level, something that can interact with the
player. First, the agent needs a physical mesh representation in the scene. For this,
I used the Constructor mesh, which is part of the Unity Character Controllers
package imported earlier. Drag-and-drop this from the Project panel into the scene
and then remove any animator component that might be created, as shown in
the following screenshot. The animations will be important, but a custom-made
animator controller will be created later.
Adding a constructor mesh for the enemy character
 
Search WWH ::




Custom Search