Added move_toward functions for float, Vector2 and Vector3

This commit is contained in:
Giacom
2019-04-07 22:40:56 +01:00
parent 252c841d7f
commit c00427add3
24 changed files with 205 additions and 36 deletions

View File

@@ -185,6 +185,17 @@
Returns the result of the linear interpolation between this vector and [code]b[/code] by amount [code]t[/code]. [code]t[/code] is in the range of [code]0.0 - 1.0[/code], representing the amount of interpolation.
</description>
</method>
<method name="move_toward">
<return type="Vector2">
</return>
<argument index="0" name="b" type="Vector2">
</argument>
<argument index="1" name="t" type="float">
</argument>
<description>
Moves the vector toward [code]to[/code] by the fixed [code]delta[/code] amount.
</description>
</method>
<method name="normalized">
<return type="Vector2">
</return>