BehaviorManager manual update mode - delta time

Lukas

New member
General question,

when setting BehaviorManager to manual update, or even every Nth second, then any API using Time.deltaTime, like MoveTowards, won't work right, as tasks OnUpdate() don't get updated each frame, but rather event Nth second. Since delta time is time since last frame, but we are not updating each frame, but every Nth frame.

Is there some solution to this?
 
If you tick once every second you don't want MoveTowards to jump ahead since that will lead to a lot of stutter. I actually think the best solution would be to create a new task that updates outside of the behavior tree every update, but then you just issue commands every x interval.
 
Back
Top