Crates.io | bevy_spectator |
lib.rs | bevy_spectator |
version | 0.6.0 |
source | src |
created_at | 2022-11-14 04:22:24.770093 |
updated_at | 2024-07-05 08:02:22.483475 |
description | A spectator camera plugin for Bevy |
homepage | https://github.com/JonahPlusPlus/bevy_spectator |
repository | https://github.com/JonahPlusPlus/bevy_spectator |
max_upload_size | |
id | 714701 |
size | 110,803 |
A spectator camera plugin for the Bevy game engine.
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.
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 | 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 |