Bevy Debug Camera
This library provides a simple, lightweight way of having a "flycam" style camera for debugging. It's confirgurable, letting you easily enable the system locally for a camera or globally for all cameras with a component and resource.
Bevy compatibility
| Bevy Version | bevy-debug-camera version |
|---|---|
| 0.9.1 | ^0.1.0 |
| ^0.10.0 | ^0.2.0 |
| ^0.11.0 | ^0.3.0 |
Examples
You can look at the examples folder for practical uses of this crate, but to get started you can simply do the following when setting up your app:
use *;
use ;
Bindings
The default bindings are as follows:
Mouse + Keyboard
| Action | Binding |
|---|---|
| Move forward | W |
| Move backward | S |
| Move left | A |
| Move right | D |
| Move up | Lshift |
| Move down | Space |
| Yaw | Mouse X |
| pitch | Mouse Y |
| Roll left | Q |
| Roll right | E |
Controller
| Action | Binding |
|---|---|
| Move fwd/bwd | Lstick Y |
| Move left/right | Lstick X |
| Move up | RTrigger |
| Move down | LTrigger |
| Yaw | Rstick X |
| pitch | Lstick Y |
| Roll left | LBumper |
| Roll right | RBumper |
Configuring Plugin
The plugin comes with some configuration options you can set on startup that use to customise behaviour of the cameras in use. You can configure:
- Keyboard bindings
- Gamepad bindings
- Accepted input
All these customisation are exposed as resources, which are constantly read and can be modified
during runtime as well An example using all configuration options can be seen below and in the
configuration example:
use *;
use ;