Skip to content

Rotation handled incorrectly when rotation center is changed during animation #2

@dantel35

Description

@dantel35

Hi,
first of all - thanks a lot for this implementation. Most things are working great and it is a big help handling spriter in libgdx.

Unfortunately there is a bug with the rotation handling logic when you change the rotation center during your animation. Here is an attached example:
roundrect_bug_report.zip

If you play that in Spriter it looks like that:
example

If you play it in libgdx with this Spriter implementation, it looks like the following:
example_libgdx

Notice how at the end the stick is falling back to the point where it started, as it should be, in spriter but is drifting to the right in libgdx.

What happens is that the rotation center is at the left corner of the stick at first until apprx. the middle of the animation and then it is changed to the right side of the stick.

Unfortunately I am not familiar enough with the code to offer a fix but I wanted to point it out anyway.

Cheers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions