O'Reilly logo

Building a Game with Unity and Blender by Lee Zhi Eng

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating basic artificial intelligence

Phew, we have come a long way, haven't we? But the most exciting part is just about to start—we will learn how to create basic game AI in Unity!

In a nutshell, artificial intelligence is all about making decisions autonomously based on a set of conditions and requirements. If a given condition has been met, then the AI will try to move from its current state to the other state that fits the criteria. This is what we call the finite state machine.

In order to know what conditions we need to set in our AI and what decisions it can make, we will design yet another flow chart for the AI:

Creating basic artificial intelligence

In this chapter, we will only ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required