Crates.io | bevy_awesome_debug_camera |
lib.rs | bevy_awesome_debug_camera |
version | 0.1.0 |
source | src |
created_at | 2024-07-06 12:58:46.073284 |
updated_at | 2024-07-06 12:58:46.073284 |
description | A easy-to-use customizable drop-in free cam for the (awesome) bevy engine |
homepage | https://github.com/cactusdualcore/bevy_freecam/blob/main/README.md |
repository | https://github.com/cactusdualcore/bevy_freecam |
max_upload_size | |
id | 1294025 |
size | 125,798 |
This repository contains a custom debug camera system for applications built using the Bevy game engine. This system provides flexible and configurable camera controls, including movement, rotation, and zooming, which are essential for debugging and developing 3D applications.
This crate revolves around the DebugCamera
component, which exposes the
implemented functionality to any camera it is added to. Most functionally
requires any user to add the DebugCameraPlugin
to the app as well though.
For gettting started check out the examples.
Most features of this crate are thoroughly customizable through the
debug_camera_options
field on DebugCameraPlugin
. All available options are
available in the documentation of DebugCameraOptions
.
let debug_camera_options = DebugCameraOptions {
// Update any configuration here!
..Default::default()
};
App::new()
.add_plugins((DefaultPlugins, DebugCameraPlugin {
debug_camera_options,
..Default::default()
}))
.run();
To avoid conflicts, DebugCameraOptions
and InputOptions
don't come with
preconfigured keybindings. You can either provide custom KeyBindings
or use
one of the preconfigured instances. KeyBindings
constructed through
Default::default
are preconfigured. You can see the keymap used by them in
the table below.
Action | Key | Field |
---|---|---|
Move Forward | W | forward |
Move Backward | S | back |
Move Left | A | left |
Move Right | D | right |
Move Up | Q | up |
Move Down | E | down |
Elevate | R | global_up |
Descend | F | global_down |
bevy version |
bevy_awesome_debug_camera version |
---|---|
0.14 | 0.1 |
Contributions are welcome! Please feel free to open an issue or submit a pull request.