bevy_spectator

Crates.iobevy_spectator
lib.rsbevy_spectator
version
sourcesrc
created_at2022-11-14 04:22:24.770093
updated_at2024-12-07 00:39:08.241568
descriptionA spectator camera plugin for Bevy
homepagehttps://github.com/JonahPlusPlus/bevy_spectator
repositoryhttps://github.com/JonahPlusPlus/bevy_spectator
max_upload_size
id714701
Cargo.toml error:TOML parse error at line 24, column 1 | 24 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include`
size0
Hennadii Chernyshchyk (Shatur)

documentation

https://docs.rs/bevy_spectator

README

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
Commit count: 50

cargo fmt