Tween without easing?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By monnef

Looking at docs of interpolate_property, ease_type is required and there is no EASE_NONE constant. How to use interpolate_property without easing?

I am using Godot 3.1.1 stable.

:bust_in_silhouette: Reply From: Korinin

Any TransitionType except TRANS_LINEAR requires easing to work (it’s just how interpolation works - you must indicate where interpolation starts and ends).

And because of how TRANS_LINEAR works, any EaseType does not affect it anyhow

here’s a low-quality inaccurate example of how interpolation works

In other words,
If you want to use linear interpolation, any easing should do it
If you want non-linear interpolation without easing… no, you do not want that - this thing just doesn’t exist!

Thanks for the explanation. Transition didn’t look smooth to me, maybe there is some other reason for it other than easing. Looking at this image, it seems to me, that at a start of a linear interpolation there is some weird jump, so maybe that’s the problem I was seeing?

monnef | 2020-06-05 12:33

Not sure which problem you have seen but “weird jump” looks as some kind of visual bug. You can experiment with transition and easing and see if there is one that suits your purposes

Korinin | 2020-06-07 06:36