Skip to Main Content
Unity 2018 By Example - Second Edition
book

Unity 2018 By Example - Second Edition

by Alan Thorn
July 2018
Beginner content levelBeginner
484 pages
9h 36m
English
Packt Publishing
Content preview from Unity 2018 By Example - Second Edition

Chapter 8. Continuing with Intelligent Enemies

This chapter continues with the previous one and completes the AI project by focusing on the theory and related coding underpinning an intelligent enemy. The enemy will demonstrate three main behaviors: patrolling, chasing, and attacking. In this chapter, we will dive into the following topics:

  • How to plan and code an AI system for enemy characters
  • How to code Finite State Machines (FSMs)
  • How to create the line-of-sight functionality

    Note

    The starting project and assets can be found in the book companion files in the Chapter08/Start folder. You can start here and follow along with this chapter if you don't have your own project already.

Enemy AI – range of sight

Let's now start developing enemy AI by thinking ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Unity 2020 By Example - Third Edition

Unity 2020 By Example - Third Edition

Robert Wells
Unity 2018 Cookbook - Third Edition

Unity 2018 Cookbook - Third Edition

Matt Smith, Chico Queiroz, Jate Wittayabundit

Publisher Resources

ISBN: 9781788398701Supplemental Content