Understanding different node types

The names of the different types of node may vary depending on who you ask, and even nodes themselves are sometimes referred to as tasks. While the complexity of a tree is dependent entirely upon the needs of the AI, the high-level concepts about how BTs work are fairly easy to understand if we look at each component individually. The following is true for each node regardless of what type of node we're referring to. A node will always return one of the following states:

  • Success: The condition the node was checking for has been met.
  • Failure: The condition the node was checking for was not, and will not, be met.
  • Running: The validity of the condition the node is checking for has not been determined. Think ...

Get Unity 2017 Game AI Programming - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.