Behavior Tree Implementations

12,197

Solution 1

Here's a few I've found:

This Q on GameDev could be helpful, too.

Solution 2

Take a look at https://skill.codeplex.com/. this is a BehaviorTree code generator for unity. you can download source code and see if it is useful.

Solution 3

I did my own behavior tree implementation in C++ and used some modified code from the Protothreads Library. Coroutines in C is also a good read. Using this one can implement a coroutine system that allows one to run multiple behaviors concurrently without the use of multiple threads. Basically each tree node would have its own coroutine.

Solution 4

I don't know that I understand you right but I think to implement a tree you'r better choice is to use an formal language such as F# or Haskell. With Haskell you can use flexible and fast tree-structures and with F# you have an multiparadigm Language to parse and handle tree structures in oo Code.

I hope that helps you.

Share:
12,197
Hamza Yerlikaya
Author by

Hamza Yerlikaya

Updated on June 04, 2022

Comments

  • Hamza Yerlikaya
    Hamza Yerlikaya almost 2 years

    I am looking for behavior tree implementations in any language, I would like to learn more about how they are implemented and used so can roll my own but I could only find one Owyl, unfortunately, it does not contain examples of how it is used.

    Any one know any other open source ones that I can browse through the code see some examples of how they are used etc?

    EDIT: Behavior tree is the name of the data structure.