Julian-Vos / asset-library-MapCamera2D-4

https://github.com/Julian-Vos/godot-scripts/tree/master
MIT License
10 stars 2 forks source link

Adding the possibility to rotate the camera with the mouse and with … #3

Closed Neo-Teyrall closed 3 months ago

Neo-Teyrall commented 3 months ago

…the keybord

-- adding rotation left and right keyboard action -- the camera rotate when the mouse is in the bot right or the bot left of the screen. -- the camera rotation is take in count for the pan. -- /!\ the zoom need to be better. some weird behavior is notice

Neo-Teyrall commented 3 months ago

This is my first pull requeste

Julian-Vos commented 3 months ago

Hello, thank you for your pull request for issue #2 :) Unfortunately I'm not accepting pull requests for now, but if there is more demand for rotation I might implement it myself, and look at your code for inspiration. It's tricky to make it work right because rotation interacts with everything: not just with panning and zooming, but also with dragging, limits and smoothing. Nevertheless feel free to keep developing your fork; I hope it works for your use case!