Skip to content

Rotation animation broken in v9 #100

@MAClavell

Description

@MAClavell

Hey, I noticed that the rotation animation wasn't working when I upgraded to v9. I fixed it with the change to animateRotation below:

at line 79, change

                tile.tile.rotation += (delta * dt);

to

                if (tile.data.rotation > 360) {
                    tile.data.rotation -= 360;
                }
                tile.document.data.rotation += (delta * dt);
                const refreshPerception = false;
                tile.refresh({refreshPerception});

I tried using tile.rotate but that caused the animation to lag a little. This change is client-side only and is smooth.

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