bevy_prank 0.2.0

Opinionated Unreal Engine inspired spectator camera for the Bevy game engine
Documentation

Bevy Prank

Opinionated Unreal Engine inspired spectator camera for the Bevy game engine.

demo.webm

📦 Installation

  1. Install the crate using cargo

    cargo add bevy_prank
    
  2. Add PrankPlugin to your app

    use bevy::{prelude::*, diagnostic::FrameTimeDiagnosticsPlugin};
    use bevy_prank::prelude::*;
    
    fn main() {
        let mut app = App::new();
    
        // ...
    
        app.add_plugins((
            DefaultPlugins,
            // required unless `hud` field of PrankPlugin is set to `None`
            FrameTimeDiagnosticsPlugin,
        ));
        app.add_plugins(PrankPlugin::default());
    
        // ...
    
        app.run();
    }
    

🎮 Controls

Control Action
MMD + Drag Offsets the camera on its local x (left/right) and y (top/bottom) axes
RMB + Drag Rotates the camera
RMB + W A S D Moves the camera on its local x (left/right) and z (front/back) axes
RMB + E Q Moves the camera on the y (top/bottom) axis
RMB + LShift + W A S D E Q Moves the camera on the x (left/right), y (top/bottom) axes, and z (front/back) axes