PacktLib: Unity 4.x Game AI Programming

Unity 4.x Game AI Programming

Credits

About the Authors

About the Reviewer

www.PacktPub.com

Preface

Introduction to AI

Artificial Intelligence (AI)

AI in games

AI techniques

Summary

Finite State Machines

The player's tank

The bullet class

Setting up waypoints

The abstract FSM class

The enemy tank AI

Using an FSM framework

Summary

Random and Probability

Random

Definition of probability

Character personalities

FSM with probability

Dynamic AI

Demo slot machine

Summary

Implementing Sensors

Basic sensory systems

Scene setup

Player tank and aspect

AI character

Testing

Summary

Flocking

Flocking from Unity's Island Demo

Alternative implementation

Summary

Path Following and Steering Behaviors

Following a path

Avoiding obstacles

Summary

A* Pathfinding

A* algorithm revisit

Implementation

Scene setup

Testing

Summary

Navigation Mesh

Introduction

Setting up the map

Scene with slope

NavMeshLayers

Off Mesh Links

Summary

Behavior Trees

Behave plugin

Workflow

Action

Interfacing with the script

Decorator

Behave debugger

Sequence

Exploring Behave results

Selector

Priority selector

Parallel

Reference

The Robots versus Aliens project

Summary

Putting It All Together

Scene setup

Vehicles

Weapons

Summary

Index