Open johanhelsing opened 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?)
max_x
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
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