Skip to content

A spectator camera plugin for the Bevy game engine (https://bevyengine.org).

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

JonahPlusPlus/bevy_spectator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bevy Spectator

crates.io crates.io docs.rs

A spectator camera plugin for the Bevy game engine.

Controls

Action Key
Forward W
Left A
Backward S
Right D
Up Space
Down ControlLeft
Alternative Speed ShiftLeft
Release Cursor Escape

Movement is constrained to the appropriate axes. (WASD to X & Z axes, Space & ShiftLeft to the Y axis)

When in orthographic mode, only WASD is used.

Basic example

use bevy::prelude::*;
use bevy_spectator::*;

fn main() {
    App::new()
        .add_plugins((DefaultPlugins, SpectatorPlugin))
        .add_systems(Startup, setup)
        .run();
}

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

Bevy compatibility

bevy bevy_spectator
0.15 0.7
0.14 0.6
0.13 0.5
0.12 0.4
0.11 0.3
0.10 0.2
0.9 0.1

About

A spectator camera plugin for the Bevy game engine (https://bevyengine.org).

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Languages