Crates.io docs.rs Bevy tracking

Bevy Pan/Orbit Camera

Basic orbit camera controls for Bevy. Supports orbiting, panning, and zooming.

It was designed as a plug and play camera to get up and running quickly, with good defaults, but also the ability to customise some aspects to your liking.

Default controls:

Demo

A screen recording showing camera movement

Features

Quick Start

Simply add the PanOrbitCameraPlugin, then add PanOrbitCamera to an entity with a Camera3dBundle:

```rust use bevy::prelude::*; use bevypanorbitcamera::{PanOrbitCameraPlugin, PanOrbitCamera};

fn main() { App::new() .addplugins(DefaultPlugins) .addplugin(PanOrbitCameraPlugin) .addstartupsystem(setup) .run(); }

fn setup(mut commands: Commands) { commands .spawn(( Camera3dBundle::default(), PanOrbitCamera::default(), )); } ```

Be sure to check out the examples.

Version Compatibility

| bevy | bevypanorbitcamera | |------|----------------------| | 0.10 | 0.1, 0.2 |

Credits

License

All code in this repository is dual-licensed under either:

at your option. This means you can select the license you prefer! This dual-licensing approach is the de-facto standard in the Rust ecosystem and there are very good reasons to include both.