Skip to main content

Crate bevior_tree

Crate bevior_tree 

Source
Expand description

Behavior tree plugin for Bevy.

Modules§

conditional
Nodes that depends on the condition of the bevy world().
converter
Decorator nodes that convert the result of its child.
node
Abstract representation of node of behavior tree.
parallel
Composite nodes that run children parallelly.
prelude
Module for convenient imports. Use with use bevior_tree::prelude::*;.
sequential
Composite nodes that run children in sequence.
task
Node that represents Task.

Macros§

impl_random_picker
Implement PickerBuilder for RandomPickerBuilder with given RNG type and Marker type. This is a macro because typetag does not support generic impl directly.

Structs§

BehaviorTree
Behavior tree component. Nodes of the tree receive the entity with this component.
BehaviorTreePlugin
Add to your app to use this crate.
BehaviorTreeRoot
Asset representing behavior tree root node.
BehaviorTreeSource
Component to specify the source path of the behavior tree asset.
Freeze
Add to the same entity with the BehaviorTree to temporarily freeze the update. You may prefer conditional::ElseFreeze node. Freezes transition of the tree, not running task.
TreeStatus
Represents the state of the tree.

Enums§

BehaviorTreeSystemSet
SystemSet that the plugin use.

Functions§

load_from_source
System to load behavior tree assets from source paths. Attach BehaviorTreeSource component to an entity to trigger loading.