Show:
Module: behavior3

A behavior tree.

Table of Contents

Constructor

BehaviorTree ()

Methods

tick
(
  • target
  • blackboard
)

Apply the behavior tree to an entity with a context blackboard.

Parameters:

  • target

    The target object of the tick.

  • blackboard Backbord

    The blackboard too use as context.

Properties

id

Number

Unique ID of the BehaviorTree, this id is used when storing / retrieving data to the blackboard object.

root

BaseNode

The root node of the tree.