-
-
Notifications
You must be signed in to change notification settings - Fork 160
Add delta time in tick() function #216
Copy link
Copy link
Open
Labels
🌺 enhancementNew feature or requestNew feature or request💥 breaks compatibilityChanges the API contract so it may break compatibility with older versions.Changes the API contract so it may break compatibility with older versions.
Milestone
Metadata
Metadata
Assignees
Labels
🌺 enhancementNew feature or requestNew feature or request💥 breaks compatibilityChanges the API contract so it may break compatibility with older versions.Changes the API contract so it may break compatibility with older versions.
Is your feature request related to a problem? Please describe.
The only way to get delta time in tick() function is action nodes is actor.get_physics_process_delta_time() which is annoying. Also user won't know at first if this is running in the physics process or the normal process.
Describe the solution you'd like
Add delta (time) parameter, to tick function. It can be passaed in
beehave_tree.gd#_physics_process(delta: float)function at line 116This is also useful for condition nodes that needs to create a timer you want to manually control instead of using get_scene_tre().create_internal_tiner()...
Describe alternatives you've considered
I thought about a default blackboard having it but that didn't make sense
Additional context
It's troublesome not knowing at first how tick runs. I'll make another issue for this. I'll try to make also a PR to fix this issue tomorrow