- Unity 2017 Game AI Programming(Third Edition)
- Ray Barrera Aung Sithu Kyaw Thet Naing Swe
- 209字
- 2021-07-02 19:14:13
Finite State Machines and You
In this chapter, we'll expand our knowledge of the FSM pattern and its uses in games and learn how to implement it in a simple Unity game. We will create a tank game with the sample code that comes with this book. We'll be dissecting the code and the components in this project. The topics we'll cover are as follows:
- Understanding Unity's state machine features
- Creating our own states and transitions
- Creating a sample scene using examples
Unity 5 introduced state machine behaviors, which are a generic expansion of the Mecanim animation states that were introduced in the 4.x cycle. These new state machine behaviors, however, are independent of the animation system, and we will learn to leverage these new features to quickly implement a state-based AI system.
In our game, the player will be able to control a tank. The enemy tanks will be moving around in the scene with reference to four waypoints. Once the player tank enters their visible range, they will start chasing us, and once they are close enough to attack, they'll start shooting at our tank agent. This simple example will be a fun way to get our feet wet in the world of AI and state FSMs.
- 手機安全和可信應用開發指南:TrustZone與OP-TEE技術詳解
- Java多線程編程實戰指南:設計模式篇(第2版)
- Node.js 10實戰
- TensorFlow Lite移動端深度學習
- Spring Cloud Alibaba微服務架構設計與開發實戰
- OpenShift開發指南(原書第2版)
- 深度學習經典案例解析:基于MATLAB
- HTML5+CSS3基礎開發教程(第2版)
- 網絡爬蟲原理與實踐:基于C#語言
- Visual Basic程序設計習題與上機實踐
- JSP程序設計實例教程(第2版)
- Deep Learning with R Cookbook
- 動手打造深度學習框架
- Python無監督學習
- Getting Started with JUCE