Adding automated navigation

The first step is to modify the level to support automated navigation. In the original game, all the moving objects (the tanks) are controlled by the user, so there is no need for pathfinding. Now that we want to add AI, we need to have a world representation through which the AI can move. Luckily, this process is very easy, thanks to NavMeshes.

Get Unity Artificial Intelligence Programming - Fourth 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.