behavior-trees
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
behavior-trees [2020/05/22 12:20] – created maxime | behavior-trees [2020/07/17 14:29] – maxime | ||
---|---|---|---|
Line 5: | Line 5: | ||
===== Register new behavior trees ===== | ===== Register new behavior trees ===== | ||
- | You can now create custom behavior tree assets with '' | + | You can now create custom behavior tree assets with '' |
A behavior tree is defined as a table containing an ID ('' | A behavior tree is defined as a table containing an ID ('' | ||
Line 11: | Line 11: | ||
==== VariableList ==== | ==== VariableList ==== | ||
- | Each variable in the list must contain at list a unique '' | + | Each variable in the list must contain at list a unique '' |
You can also specify if a variable is public ('' | You can also specify if a variable is public ('' | ||
Line 25: | Line 25: | ||
* composite nodes ('' | * composite nodes ('' | ||
- | Leaf nodes ('' | + | Leaf nodes ('' |
- | When defining a node in a new behavior tree, you have to specify at least its unique name ('' | + | When defining a node in a new behavior tree, you have to specify at least its unique name ('' |
Finally, if the node is a branch node, you have to add the list of children ('' | Finally, if the node is a branch node, you have to add the list of children ('' | ||
Line 39: | Line 39: | ||
==== VariableList ==== | ==== VariableList ==== | ||
- | The list of variables is a simple key-value pair list with the variables name as key, and its type (inheriting from '' | + | The list of variables is a simple key-value pair list with the variables name as key, and its type (inheriting from '' |
==== Functions ==== | ==== Functions ==== | ||
- | A leaf node has three basic functions: '' | + | A leaf node has three basic functions: '' |
- | When a node is executed, the '' | + | When a node is executed, the '' |
You can access all of the node's variables in those functions with '' | You can access all of the node's variables in those functions with '' |
behavior-trees.txt · Last modified: 2021/07/29 11:56 by maxime