You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add Tween.interpolate() as a low-level tweening option
This can be used as an alternative to `Tween.interpolate_property()`
when additional control is needed.
This closesgodotengine/godot-proposals#36.
Co-authored-by: Nasser Alansari <alansari.n@gmail.com>
Copy file name to clipboardexpand all lines: doc/classes/Tween.xml
+30
Original file line number
Diff line number
Diff line change
@@ -79,6 +79,36 @@
79
79
Returns the total time needed for all tweens to end. If you have two tweens, one lasting 10 seconds and the other 20 seconds, it would return 20 seconds, as by that time all tweens would have finished.
Returns an interpolated value between [code]initial_val[/code] and [code]final_val[/code], following the transition and easing curves defined in [code]trans_type[/code] and [code]ease_type[/code]. [code]weight[/code] must be between 0 and 1 (inclusive). This can be used as a lower-level alternative to [method interpolate_property].
97
+
[code]initial_val[/code] and [code]final_val[/code] must be of the same type. If interpolation fails, this method will return [code]false[/code].
98
+
[b]Note:[/b] If you only need linear interpolation, [method @GDScript.lerp], [method Vector2.linear_interpolate] or [method Vector3.linear_interpolate] may be easier to set up.
0 commit comments