Chapter 9

AI Manager

When computer scientist John McCarthy coined the term artificial intelligence (AI) in the mid-1950s, I doubt anything like the path-finding killer robot cars we will be building in this book would have been on his mind.

The AI Controller in this book is a basic state machine, focused on function rather than on any kind of emotional simulation. For it to work for the example games later on in the book, our AI controller will be able to perform several different actions. It will need to be able to control a vehicle (as in a body, a spaceship, or other moving entity) by turning and moving forward and backward and using vision to try to avoid obstacles. When we need the controller to follow a specific path, it should be capable ...

Get C# Game Programming Cookbook for Unity 3D now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.