7 releases (breaking)

0.6.0 Jul 5, 2024
0.5.0 Feb 23, 2024
0.4.0 Nov 10, 2023
0.3.0 Jul 21, 2023
0.1.1 Nov 14, 2022

#333 in Game dev

Download history 39/week @ 2024-07-08 20/week @ 2024-07-15 4/week @ 2024-07-22 18/week @ 2024-07-29 26/week @ 2024-08-05 14/week @ 2024-08-12 14/week @ 2024-08-19 25/week @ 2024-08-26 15/week @ 2024-09-02 12/week @ 2024-09-09 23/week @ 2024-09-16 38/week @ 2024-09-23 29/week @ 2024-09-30 5/week @ 2024-10-07 24/week @ 2024-10-14 6/week @ 2024-10-21

70 downloads per month
Used in 5 crates

MIT/Apache

30KB
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.14 0.6
0.13 0.5
0.12 0.4
0.11 0.3
0.10 0.2
0.9 0.1

Dependencies

~25MB
~449K SLoC