Registry / other / bevy-pancam

bevy-pancam

JSON →
library0.20.0rscratesunverified

A camera that allows panning by dragging with the mouse.

# Cargo.toml [dependencies] bevy_pancam = "0.20.0"
INSTALL
IMPORT
SIG · BEVY-PANCAM
B
bevy-pancam
otherrustv0.20.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

PanCamPlugin
use bevy_pancam::PanCamPlugin;

Add the PanCam plugin to a Bevy app for mouse-drag camera panning.

use bevy::prelude::*; use bevy_pancam::PanCamPlugin; fn main() { App::new() .add_plugins(DefaultPlugins) .add_plugins(PanCamPlugin) .run(); }
Debug
Known issues
gotchaRequires the `bevy` crate with the `bevy_render` feature enabled.
fix
Add `bevy` as a dependency with default features.
affects: >=0.1.0
Upgrade
Version history
0.20.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
24 hits · last 30 days
node
20
Meta
1
OpenAI (training)
1
Resources
bevy-pancam — cargo add bevy-pancam · libregistry