behavior-tree
Behavior Tree for Go
A Go implementation of the behavior3 behavior tree, fully compatible with the official online editor's data format.
Quick Links
- 📖 Documentation — concepts, node reference, and examples
- 🚀 Getting Started
- 💻 GitHub Repository
Features
- Stateless tree — only one copy of the tree structure exists; state lives in the Blackboard, so one tree can drive hundreds of objects.
- Editor compatible — translated from the JS version; identical data format to the official behavior3 online editor.
- SubTree support — compose and reuse logic with
SubTreenodes. - Rich built-in nodes — four categories (Composite, Decorator, Action, Condition), including random wait and probability decorators.
behavior-treeis the external repository and product brand for the Go modulegithub.com/henrytien/behavior-tree. The Go package declaration ispackage behaviortree; examples can continue to useb3as an explicit import alias. This repository is derived frommagicsea/behavior3goand is now maintained independently.