Jump to ratings and reviews
Rate this book

Unity AI Programming Essentials

Rate this book
Use Unity3D, a popular game development ecosystem, to add realistic AI to your games quickly and effortlesslyAbout This BookImplement pathfinding, pathfollowing, and use navigation mesh generation to move your AI characters within the game environmentUse behaviour trees to design logic for your game characters and make them “think”A practical guide that will not only cover the basics of AI frameworks but also will teach how to customize themWho This Book Is ForThis book is aimed at developers who know the basics of game development with Unity and want to learn how to add AI to their games. You do not need any previous AI knowledge; this book will explain all the essential AI concepts and show you how to add and use them in your games.

What You Will LearnApply pathfinding and pathfollowing features using Unity AI pluginsBuild behavior trees for different character typesAcquire the skills to create an enemy attack AIMake use of crowd AI plugins to create realistic crowdsCreate game characters that sense different parts of the environment and adapt to themUse driving AI to handle AI for racing gamesIntegrate AI with Unity's classic animation system and MecanimDesign complex navigation meshes for character movementIn DetailUnity is a powerful cross-platform game creation system that includes a game engine and integrated development environment (IDE). AI programming in Unity is a key task for any game developer as it gives you the ability to make computer characters think and behave like a living organism.

This book focuses on the different AI tasks that are essential for game development using Unity. It includes topics such as defining "minds" for your characters with behavior trees. Furthermore, it covers more specialized AI tasks such as how to implement AI crowds and how to create driving AI for vehicles. We have a section dedicated to NavMesh, one of the most important aspects of pathfinding, that will show you how to customize the mesh generation to handle different use cases for different characters. This is a practical book as it uses several popular Unity plugins such as RAIN and React AI to accomplish different AI tasks.

247 pages, Kindle Edition

First published December 22, 2014

1 person is currently reading
10 people want to read

About the author

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
3 (75%)
4 stars
0 (0%)
3 stars
0 (0%)
2 stars
1 (25%)
1 star
0 (0%)
Displaying 1 of 1 review
Profile Image for Heleen Durston.
20 reviews
March 4, 2015
There are many assets available for Unity that implement Artificial Intelligence (AI). Simple AIs can also be created by coding a state machine. Unity also provides Navigation Meshes which help with developing pathfinding AIs. “Unity AI Programming Essentials” by Curtis Bennett and Dan Violet Sagmiller covers 6 different AI’s that are available in Unity’s asset store. Each of the following AI solutions are presented in the form of a project that you can download from Packt Publishing’s website: https://www.packtpub.com/game-develop....
Quick Path AI by Alkehine Games is available for $10 at Unity’s asset store. Its main focus is on pathfinding. The manual and a demo are available on Alkehine Games’ website at http://alekhinegames.com/. This solution is covered in Chapter one in the book and is great for beginners.
React AI is by Different Methods and is available for $45 at the asset store. This asset provides a way of building behavior trees that make use of Mecanim animation and allow you to code items such as chain-of-command AIs and NPC behavior. The book discusses how to use React in chapters one, four and seven. If you enjoy coding and want to use an AI for behavior trees than this is a great choice. For more information on React visit their website at http://www.differentmethods.com/.
Smart Car AI is by Bonecracker Games and is available for $10 on the asset store. All of chapter 9 is dedicated to using this AI and creating a car game demo. Smart Car allows you to set all different sorts of properties for cars. The book provides a lot of information on modifying and using this AI. You can find more information on Smart Car AI at Bonecracker Games’ website at http://bugra381.wix.com/bonecrackergames.
In chapter 5 crowd control APIs are discussed. Crowd Simulation API by TechBizAccelerator is available for $45 on the asset store. Their website is http://www.tbx.com.sg/crowdsapi/. ANT-Op by Gray Lake Studios is available for $75 in the asset store. Their website is http://graylakestudios.com/. Both solutions provide ways of controlling groups and defining behavior in your games. These are very specific behavior AI and the chapter provides a good overview of them.
The bulk of the book covers the RAIN AI by Rival Theory which is available for free on the asset store. Their website is http://rivaltheory.com/rain/ and provides excellent documentation and examples. “Unity AI Programming Essentials” provides great information on RAIN and shows you how to set-up several different AI situations that you will come across in the creation of your games. Behavior trees, attacking situations and advanced navigation meshes are all discussed and explanations are provided on how to set-up RAIN in these situations.
“Unity AI Programming Essentials” is a wonderful book on implementing artificial intelligence in games created with Unity. Very little explanation is provided on AI’s in general; but for the specific situation of programming in Unity this book is great.

Displaying 1 of 1 review

Can't find what you're looking for?

Get help and learn more about the design.