manubb / Leaflet.PixiOverlay

Bring Pixi.js power to Leaflet maps
MIT License
463 stars 85 forks source link

Abnormal rotation direction #55

Open send010 opened 3 years ago

send010 commented 3 years ago

When I rotate the Sprite, its rotation angle must be set to 0 to Math.PI*2, and then I use the TweenMax component to rotate, but sometimes it still rotates in the opposite direction. I wonder if anyone has encountered it? How to deal with it?

TweenMax.to(sc, 2, { directionalRotation: event.data + "_short", useRadians: true });