This project is read-only.

Changing the frequency of the update in the behavior tree?

Apr 30, 2014 at 10:07 AM
I've been able to create a behavior tree to a Unity3D project, but I wish for it to update more often than (approximately) every second. Is this possible, and if so, how do I change this behavior?
May 2, 2014 at 6:43 PM
Edited May 2, 2014 at 8:23 PM
there are two property for BehaviorTree, "UpdateTimeInterval" and "ContinuousUpdate"

i managed to call BehaviorTree.Update() each frame and let BehaviorTree itself to care about update intervals. so you can set "UpdateTimeInterval = 0;" and call update how many times you want. you can set "UpdateTimeInterval = 1;" and call Update each frame, BehaviorTree will update one per second.

if ContinuousUpdate set to true, in each update call, first the tree updates 'running actions' and update whole tree if required (running actions are Success or reach "UpdateTimeInterval").

i hope this was what you ask.
Marked as answer by fredrikbaberg on 5/5/2014 at 1:41 AM
May 5, 2014 at 9:42 AM
That should be precisely what I was looking for. Thank you for the reply.