Example for PanCamera, demonstrating basic camera controls such as panning and zooming.
This example shows how to use the PanCamera controller on a 2D camera in Bevy. The camera can be panned with keyboard inputs (arrow keys or WASD) and zoomed in/out using the mouse wheel or the +/- keys. The camera starts with the default PanCamera settings, which can be customized.
Controls:
- Arrow keys (or WASD) to pan the camera.
- Mouse scroll wheel or +/- to zoom in/out.
use ;
use *;