Book Image

Learning Game AI Programming with Lua

By : David Young
Book Image

Learning Game AI Programming with Lua

By: David Young

Overview of this book

Table of Contents (16 chapters)
Learning Game AI Programming with Lua
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Free Chapter
1
Getting Started with AI Sandbox
Index

Chapter 5. Navigation

In this chapter, we will cover the following topics:

  • Generating navigation meshes

  • Pathfinding with navigation meshes

  • Accessing the path information

  • Moving soldiers with navigation meshes

  • Multiple navigation meshes

So far, we've focused on agents; now, we'll take a look at the environments that our agents occupy. To get agents to move around, we're going to use navigation meshes, which are also known as navmeshes. A navmesh is simply a polygon representation of all possible areas our agents can move to.