5.1. Finite State Machines.

February 03, 2017

 

5.1.1. Main Reading.


• Unity AI Game Programming.
• Chapter 2: Finite State Machines and You.

Discusses a way of simplifying how we manage the decisions, which AI needs to make. We use FSMs to determine how AI behaves in a particular state and how it transitions to other states.

    • Understanding Unity's state machine features
    • Creating our own states and transitions
    • Creating a sample scene using examples

5.1.2. Complementary Reading.


• Unity 5.x Game AI Programming Cookbook.
• Chapter 3: Decision Making.

    • Choosing through a decision tree
    • Working a finite-state machine
    • Combining FSMs and decision trees



5.1.3. Unity Documentation.


• Animation State Machines.
It is common for a character or other animated Game Object to have several different animations that correspond to different actions it can perform in the game. For example, a character may breathe or sway slightly while idle, walk when commanded to and raise its arms in panic as it falls from a platform. A door may have animations for opening, closing, getting jammed, and being broken open. Mecanim uses a visual layout system similar to a flow-chart, to represent a state machine to enable you to control and sequence the animation clips that you want to use on your character or object. This section gives further details about Mecanim’s state machines and explains how to use them.

5.1.4. Video Tutorials.


• Udemy
AI Programming with Finite State Machines in Unity.


    • 1 Introduction • 1:53
    • 2 Theory of State Machines • 6:51
    • 3 Designing the State Machine • 10:30
    • 4 State Machine Programming Methods • 7:53
    • 5 Project Introduction • 8:15
    • 6 State Base Class • 8:14
    • 7 The FSM Agent • 10:35
    • 8 Agent Line of Sight • 11:31
    • 9 The Idle State • 9:06
    • 10 The Attack State • 7:42
    • 11 The Pursuit State • 6:44
    • 12 The Panic State • 7:42
    • 13 Conclusion • 1:048

5.1.5. Assets.


• Unity AI Game Programming Code.
(All chapters code)







• Unity 5.x Game AI Programming Cookbook Code.
(All chapters code)







• Unity AI Programming Essentials Code.
(All chapters code)







Upon request, I may make available the following resources to all those who consider them relevant to the final project.

• Military Pack Part1.











• Modular Military Environment Pack Volume1.











• Movement Animset Pro.











• Fighting Animset Pro.











• Cover Rifle Animset Pro.











• CSci-Fi Shooter Animation Pack.











• Survival Horror Animation Pack.