well… after some tests it seems that the tick rate is ok.. only the runtime is not updated properly. Will update the same when you tick a behaviour tree manually.
But I found another problem playing with the “Wait” action: If the update interval is not 0, the wait time needs to be multiplied with the update interval value so it will reflect the actual seconds. -> ActionTask.elapsedTime is not updated properly??
Soo.. ActionTask.elapsedTime should be DateTime.now – startTime?
The “Update Interval” parameter, sets how often the Behaviour Tree updates. So an Update Interval of “3”, will only update the Behaviour Tree once every 3 seconds, therefore if you have a Wait action task that waits for 1 second, it will not matter since the Behaviour Tree (and thus the Wait action task) will only be updated and return its Status only once every 3 seconds.
Is your goal to update the graph slower? If so, I can add an option for that like “Update Speed”, but once again, “Update Interval” is simply how often the graph updated rather than how fast.
Please let me know if that makes sense 🙂
Thanks.
Join us on Discord: https://discord.gg/97q2Rjh
Author
Posts
Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic.
Login
Register
By registering on this website you agree to our Privacy Policy.