pixi-viewport icon indicating copy to clipboard operation
pixi-viewport copied to clipboard

Rotation support pixi-viewport

Open slyduda opened this issue 3 years ago • 4 comments

"Rotation isn't supported by the viewport b/c it breaks some of the plugins. You can rotate objects within the viewport, though."

Originally posted by @davidfig in https://github.com/davidfig/pixi-viewport/issues/334#issuecomment-925215514

Hi! Looking to add rotation support! I added a few comments in another thread. Rotating the viewport is essential for my project and I'm willing to tackle this as I know open source maintainers are busy! Would you be willing to point me in the direction of finding the plugins that are impacted by rotation (if you have the time).

Here is the other thread in which I commented: https://github.com/davidfig/pixi-viewport/issues/280#issuecomment-923162891

slyduda avatar Sep 23 '21 05:09 slyduda

Awesome! Most of the user input ones will be impacted by rotation: drag and pinch being the main ones. There are a bunch of utility functions in viewport.ts that might also need updating. You'll have to play with it and see what's working. Maybe add the rotation to the pinch plugin, or keep it separate. It would also be nice to have a separate drag to rotate plugin as well. Let me know if you run into any problems.

davidfig avatar Sep 27 '21 02:09 davidfig

This is also important to my project and, while I could work around it, I would like to have an official solution. Is this still something you are working on? If not, is there a fork with a start on it or some advice for pitfalls? I'd be happy to help out where I can.

Veldrovive avatar Dec 18 '21 19:12 Veldrovive

This would be incredibly useful!

nmichlo avatar May 28 '23 23:05 nmichlo

This is not something I'm actively working on. But happy to take PRs.

davidfig avatar Jun 04 '23 13:06 davidfig