- Hands-On Artificial Intelligence with Unreal Engine
- Francesco Sapio
- 193字
- 2021-06-24 15:23:25
Starting Behavior Trees from AI Controllers
Now that we have covered the basics of what Behavior Trees are and what they consist of, let's create our own. Recall from the previous chapter, the class in charge of possessing a Pawn and controlling it is the AI Controller. Thus, our Behavior Trees should run on AI Controllers.
We have two ways we can do this. The first one is by using Blueprints. Usually, even if you are a programmer, it is best to create a Behavior Tree using Blueprints, since the logic is really easy and the controller is simple. On the other hand, if you are a C++ fan and you want to use it as much as possible, even for small tasks, don't worry—I'll recreates the same logic we will do in Blueprint again, but this time in C++. In any case, Behavior Tree assets should be created and modified within the editor. What you will eventually program are different nodes than the ones that are available by default (we will see this later in this book), but the tree itself is always made in the editor.
- Learning RxJava
- UI智能化與前端智能化:工程技術、實現方法與編程思想
- 老“碼”識途
- C語言程序設計實踐教程
- Learning Python Design Patterns
- 數據結構習題解析與實驗指導
- 領域驅動設計:軟件核心復雜性應對之道(修訂版)
- Node.js 12實戰
- MATLAB GUI純代碼編寫從入門到實戰
- Serverless Web Applications with React and Firebase
- 愛上C語言:C KISS
- C/C++代碼調試的藝術(第2版)
- Software Architecture with Python
- 多接入邊緣計算實戰
- 自己動手做智能產品:嵌入式JavaScript實現