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 4. Mind Body Control

In this chapter, we will cover the following topics:

  • Attaching an animated mesh to an agent

  • Adding callbacks to the Lua animation state machine

  • Getting our soldier to shoot projectiles

  • Creating an agent that directly controls the animation playback

  • Creating an animation controller that handles the animation playback

  • Running agents through an obstacle course

Now that we've learned how to move agents based on steering forces and created a system to handle animated meshes, it's time to join both of these systems to build a visual representation of an animated, moving agent.

Going forward, we'll implement two different approaches on how decision logic, the mind, the visual appearance, and the body can be implemented within the sandbox.