0 votes

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.

in Engine by (127 points)

1 Answer

+2 votes
Best answer

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!

by (67 points)
selected by

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?

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

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.