[Curved movement] Certain easing functions cause TweenPathMovement to never finish #1320
Open
1 task done
Labels
⚠ Issue with an extension
An issue with an extension that is already on the extension store
Is there an existing issue for this?
Enter the name of the extension
Curved movement
Describe the bug of the extension
The easing functions
"easeInBack"
and"swingFrom"
causeTweenPathMovement
to never finish its movement. This means theFinished to move
andReached an end
conditions never return true. The output ofbehavior.Progress()
stops at0.9999999999999998
.Steps to reproduce
"easeInBack"
&"swingFrom"
GDevelop platform
Desktop
GDevelop version
5.4.203
Platform info
Windows
Windows 11 Home
Desktop
Additional context
Temporary solution is to evaluate the expression
Math.abs(pathBehavior.Progress() - 1) <= Number.EPSILON
or something similar to eliminate the obvious floating point error.The text was updated successfully, but these errors were encountered: