johanhelsing / bevy_pancam

A bevy plugin for panning orthographic cameras
Apache License 2.0
173 stars 26 forks source link

Rotated orthographic projections are not supported #24

Open johanhelsing opened 2 years ago

johanhelsing commented 2 years ago

The current code assumes the camera is axis aligned with y up and x to the right.

We could perhaps try to support modes where the camera has been rotated around the z axis.

This would probably make the limits API (max_x etc.) a bit awkward to use (what does it even mean if the camera is rotated 45 degrees?)

So if we implement this, it's probably best to just turn off panning limits.

Maybe it's better to just define it as out of scope. It really boils down to how much it would complicate the code and API usage