behavior3行为树
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
SisMaker 2e793d62b1 ft: 文件名修改 il y a 4 ans
examples ft: 主模块重命令 依赖更换 il y a 4 ans
include st: 代码多余注释删除 il y a 4 ans
src ft: 文件名修改 il y a 4 ans
.gitignore ft: 初始化提交 il y a 4 ans
LICENSE ft: 初始化提交 il y a 4 ans
README.md ft: readme.md修改 il y a 4 ans
rebar.config ft: 主模块重命令 依赖更换 il y a 4 ans

README.md

中文

Behavior3的erlang支持库

快速开始

添加如下内容到rebar.config

{deps, [
   ...
   {behavior3erl, "1.0.0"}
]}.

编译

$ rebar3 compile

使用

{TitleMaps, TreeMaps, TreeNodeMaps} = eBhv3:load_tree_file("example.json"),
{ok, RootID} = eBhv3:init_btree_by_title(<<"example_ai"/utf8>>, TitleMaps, TreeMaps, TreeNodeMaps),
{_BTStatus, _BTState1} = eBhv3:execute(RootID, BTState = #{}).

更多

behavior3editor

behavior3go

Behavior3使用系列文章:

(一)行为树应用之行为树简介

(二)行为树应用之组合节点

(三)行为树应用之装饰节点

(四)行为树应用之自定义节点

(五)行为树应用之加载行为树

(六)行为树应用之节点执行

(七)行为树应用之设计巡逻兵AI

(八)行为树应用之设计丧尸AI

behavior3editor

behavior3go