Questions tagged [behavior-tree]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
1answer
37 views

Ternary conditional in behaviour trees?

When designing a behaviour tree that controls an agent, is it possible to construct the tree so that the agent first attempts task A, then depending on whether task A succeeds it attempts either task ...
0
votes
1answer
147 views

In behavior trees, how do you retain your place in a sequence?

For context, I am coding a naive implementation of behavior trees myself, in C#. Let's say I have two scenarios that I want to create behaviors for. Both AI's will traverse/patrol four specific ...
0
votes
1answer
441 views

How much logic should be in an individual behaviour tree node?

Let's say I have a condition node which has to spend a lot of time calculating something to finally return a bool to the behavior tree. But in the following action, we need this information again. I ...
2
votes
1answer
101 views

How do I Invert a Guard in GDX-AI?

I am trying to define an AI behavior where if a conditional (MyCondition) is false, execute the task. I know I can do this as follows: ...
1
vote
2answers
332 views

Interrupt on behaviour tree

I'm using a custom Behaviour Tree library (not UDK or any other engine) so I'm wondering on the best way to cause an interrupt to a currently running node. I don't have decorators or parallel nodes in ...
25
votes
6answers
4k views

Preempting Behavior Trees

I'm attempting to get my head around behavior trees, so I'm spiking out some test code. One thing I'm struggling with is how to preempt a currently running node when something of higher priority comes ...
4
votes
2answers
1k views

Behavior tree implementation details

I have been looking around for implementation details of behavior trees, the best descriptions I found were by Alex Champarand and some of Damian Isla's talk about AI in Halo 2 (the video of which is ...
3
votes
2answers
406 views

Behavior Tree Iteration Rate

How is a Behavior Tree iterated in a game? For example, let's assume you have an extremely large Behavior Tree with about a hundred Actions/Conditions. If we were to run one action or condition ...
64
votes
1answer
26k views

Difference between Decision Trees & Behavior Trees for Game AI

What are some differences between Decision Trees and Behavior Trees for AI Game Development? For what applications would you use one over the other?
1
vote
2answers
1k views

Single or Multiple Behavior Trees?

I just finished coding a generic Behavior Tree structure for my games. My question is, when creating behaviors for enemy AI's, do I create one large behavior tree with every possible configuration as ...