johanhelsing / bevy_pancam

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

Fix bugs with fixed scaling modes #23

Closed johanhelsing closed 2 years ago

johanhelsing commented 2 years ago

Setting OrthographicProjection::scaling_mode to FixedVertical or FixedHorizontal would result in the camera moving the wrong number of pixels.

This should fix it for those modes. Rotated orthographic modes are still not supported.