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

Pathfinding


Unlike other systems we've implemented in Lua, the navigation mesh and pathfinding will be provided by the open source Recast and Detour libraries. Recast is the library and toolset that is responsible for building a navigation mesh from our sandbox-level geometry, while Detour is responsible for pathfinding on the mesh.

The agents within the sandbox will use Detour as a service where paths are requested, and the agents then become responsible for following these paths. This separation of data allows you to reuse the navmesh as well as multiple navmeshes within the sandbox without having Detour or Recast interface with our agents.