Enhancement: world space camera rotation #3116
Labels
status: pending triage
The bug or PR has not been reviewed yet.
type: enhancement
Provides an enhancement or new feature.
Issue Checklist
What is your suggestion, and why should it be implemented?
requesting a merge for this pr!!
currently,
FlxCamera
allows for itself to be moved withx
andy
and its world space moved withscroll
, scaled withsetScale
and its world space scaled withzoom
, rotated withangle
... but no equivalent for the world space!when rotating a camera the size of the screen, we are stuck with ugly clipping at the corners or the screen
an alternative would be to scale the camera frame by its diagonal and then use a shader for rotation (rotating the camera completely breaks shaders), but this is extremely expensive...
this pr adds a
rotation
property to cameras which allow you to rotate the world space (video example in the pr)if any improvements could be made, math that needs to be changed, or otherwise any bugs found, please make them known in the pr instead of here; this issue is just to bring attention to it
The text was updated successfully, but these errors were encountered: