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.
Hey, I noticed that the rotation animation wasn't working when I upgraded to v9. I fixed it with the change to
animateRotationbelow:I tried using tile.rotate but that caused the animation to lag a little. This change is client-side only and is smooth.