官术网_书友最值得收藏!

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.

主站蜘蛛池模板: 同仁县| 松原市| 天祝| 洞口县| 比如县| 峡江县| 昆明市| 墨竹工卡县| 石家庄市| 汾西县| 衡阳县| 施秉县| 灵山县| 庆安县| 永宁县| 涿鹿县| 崇义县| 华阴市| 兴仁县| 墨玉县| 德化县| 山东| 包头市| 咸宁市| 泽州县| 吉木萨尔县| 那坡县| 阿尔山市| 常山县| 保靖县| 尚义县| 新晃| 襄城县| 焉耆| 龙陵县| 红原县| 瑞丽市| 栾川县| 明光市| 五家渠市| 五原县|