Bevyhub
docs > beet > guides > behavior-trees

Behavior Trees

Behavior trees traditionally use a handful of simple primitives for control flow.

SequenceFlow

Run children in the order they were added and end if one fails. This example will run both children and return RunResult::Success

FallbackFlow

Run children in the order they were added and end if one succeeds. This example will run both children and return RunResult::Success

ParallelFlow

This example will run both children and return RunResult::Success. Note that if both children return a RunResult this action will bubble both of them to its parent.