Add a special case for 0-time interpolations

This commit is contained in:
kobewi 2021-09-17 00:50:07 +02:00
parent 60d67f93c6
commit 5c1195e456
2 changed files with 5 additions and 0 deletions

View file

@ -86,6 +86,7 @@
[code]initial_value[/code] is the starting value of the interpolation.
[code]delta_value[/code] is the change of the value in the interpolation, i.e. it's equal to [code]final_value - initial_value[/code].
[code]duration[/code] is the total time of the interpolation.
[b]Note:[/b] If [code]duration[/code] is equal to [code]0[/code], the method will always return the final value, regardless of [code]elapsed_time[/code] provided.
</description>
</method>
<method name="is_running">