Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tweenfunc::easeOut is incorrect #18706

Open
stephenhurry opened this issue Mar 1, 2018 · 1 comment
Open

tweenfunc::easeOut is incorrect #18706

stephenhurry opened this issue Mar 1, 2018 · 1 comment

Comments

@stephenhurry
Copy link

Please study this: http://www.cnblogs.com/cocos2d-x/archive/2012/03/15/2398516.html

As a mirror of easeIn, s(t) = tr, easeOut should not be s(t) = t1/r.
Instead it should be s(t) = 1 - (1 - t)r. This resultant behaviour is more realistic to the desired one.

That say, the function tweenfunc::easeOut should be corrected as:

float easeOut(float time, float rate)
{
    return (1 - powf(1 - time, rate));
}
@stephenhurry
Copy link
Author

anyone?

@drelaptop drelaptop added this to the 3.18 milestone May 22, 2018
@drelaptop drelaptop removed this from the 3.17.1 milestone Nov 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants