#bevy #spectator

dev bevy_spectator

A spectator camera plugin for Bevy

6 releases (breaking)

new 0.5.0 Feb 23, 2024
0.4.0 Nov 10, 2023
0.3.0 Jul 21, 2023
0.2.0 Mar 9, 2023
0.1.1 Nov 14, 2022

#184 in Game dev

Download history 70/week @ 2023-11-04 85/week @ 2023-11-11 86/week @ 2023-11-18 90/week @ 2023-11-25 43/week @ 2023-12-02 39/week @ 2023-12-09 57/week @ 2023-12-16 45/week @ 2023-12-23 31/week @ 2023-12-30 45/week @ 2024-01-06 45/week @ 2024-01-13 36/week @ 2024-01-20 44/week @ 2024-01-27 27/week @ 2024-02-03 56/week @ 2024-02-10 137/week @ 2024-02-17

270 downloads per month
Used in 4 crates

MIT/Apache

29KB
187 lines

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.13 0.5
0.12 0.4
0.11 0.3
0.10 0.2
0.9 0.1

Dependencies

~16–48MB
~733K SLoC