在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:quabug/godot_behavior_tree开源软件地址:https://github.com/quabug/godot_behavior_tree开源编程语言:C++ 99.1%开源软件介绍:Behavior Tree for Godot EngineReferencesUnderstanding Behavior Trees by Alex J. Champandard Behavior trees for AI: How they work by Chris Simpson An Introduction to Behavior Trees by Renato Pereira Behavior tree series by Bjoern Knafla (this series of behavior tree is really helpful, but unfortunately the original post cannot be accessed since altdev.co was dead) Compiling as Godot moduleLink or copy src directory to $(GODOT_ROOT)/modules/behaviortree, then compile engine. UsageAfter success compile godot engine with this module, you can find those new types of node in editor: BTRootNode, BTParallelNode, BTSelectorNode, BTSequenceNode, BTDecoratorNode, BTActionNode. BTActionNode, BTDecoratorNode and BTRootNode can be extend by script for creating your own AI. BTParallelNode, BTSelectorNode and BTSequenceNode are composite node which cannot be extend by script. Beware that node extend by script cannot control access flow. If you need extra composite or a special decorator which can control access flow, you must write that composite or decorator in c++. BTRootNodeInherit: BTDecorator Constraint: Must be placed at top of behavior tree.
BTDecoratorNodeInherit: BTNode Constraint: Only one child allowed.
BTParallelNodeInherit: BTCompositeNode Execute children nodes without interruption. BTSelectorNodeInherit: BTCompositeNode Always execute child from left/top to right/down. Report BH_SUCESS or BH_RUNNING to parent when a child node reported a BH_SUCCESS or BH_RUNNING, report BH_FAILURE to parent when all its children reported a BH_FAILURE. BTSequenceNodeInherit: BTCompositeNode Execute child from left/top to right/down, or restart execute at last running child. Report BH_FAILURE or BH_RUNNING to parent when a child node reported a BH_FAILURE or BH_RUNNING, report BH_SUCCESS to parent when all its children reported a BH_SUCCESS. BTActionNodeInherit: BTNode Constraint: Cannot have any child.
TODO
|
2022-08-15
2022-08-17
2022-09-23
2023-10-27
2022-08-18
请发表评论