Skip to main content

Module pan_camera

Module pan_camera 

Source
Available on crate feature pan_camera only.
Expand description

A controller for 2D cameras that supports panning, zooming, and rotation.

To use this controller, add PanCameraPlugin to your app, and insert a PanCamera component into your camera entity.

To configure the settings of this controller, modify the fields of the PanCamera component.

Structsยง

MousePanSettings
Settings for mouse panning for the PanCamera controller.
PanCamera
Configuration and state for a 2D panning camera controller.
PanCameraPlugin
A plugin that enables 2D camera panning and zooming controls.