Skip to content

tweenfunc::easeOut is incorrect #18706

Open
@stephenhurry

Description

@stephenhurry

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));
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions