User Tools

Site Tools


dragengine:modules:dragonscript:behaviortrees

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
dragengine:modules:dragonscript:behaviortrees [2025/03/13 18:30] – ↷ Page moved and renamed from formats:modules:debtree:xml_behavior_tree_file_.debtree to dragengine:modules:dragonscript:behaviortrees dragonlorddragengine:modules:dragonscript:behaviortrees [2025/03/13 18:31] (current) dragonlord
Line 4: Line 4:
 </WRAP> </WRAP>
  
-====== Behavior Tree File Format (*.debtree) ====== +====== Behavior Trees ======
- +
-The behavior tree file format is recognized by the LoadBehaviorTree script class. The file is an XML file with a simple structure to define a behavior tree using XML.+
  
 Behavior trees are structured graphics describing the AI logic using a tree of rules. The behavior tree is at all times located at one of the rules in the tree. During each simulation step (typically during frame update) the behavior tree moves along the tree until an rule returns either ''BTResult.running'' . The behavior tree keeps on running the active rule each simulation step until the rule either returns ''BTResult.success'' or ''BTResult.failure''. The AI logic is formed by the logic behind each rule. Behavior trees are structured graphics describing the AI logic using a tree of rules. The behavior tree is at all times located at one of the rules in the tree. During each simulation step (typically during frame update) the behavior tree moves along the tree until an rule returns either ''BTResult.running'' . The behavior tree keeps on running the active rule each simulation step until the rule either returns ''BTResult.success'' or ''BTResult.failure''. The AI logic is formed by the logic behind each rule.
Line 70: Line 68:
 The main use for this rule is to force waiting until a rule conditions fails. The main use for this rule is to force waiting until a rule conditions fails.
  
-====== Structure ======+ 
 +====== File Format (*.debtree) ====== 
 + 
 +The behavior tree file format is recognized by the LoadBehaviorTree script class. The file is an XML file with a simple structure to define a behavior tree using XML. 
 <uml> <uml>
 @startuml @startuml
dragengine/modules/dragonscript/behaviortrees.1741890606.txt.gz · Last modified: 2025/03/13 18:30 by dragonlord