A basic fps-style flycamera for bevy
Controls
- WASD to move
- LCTRL to descend
- Space to ascend
- Escape to unlock cursor
The controls are customizable
Usage
- Add to Cargo.toml, matching major/minor with bevy
[]
= "X.Y"
= "X.Y"
- Use the plugin
use FpsCamPlugin;
This will spawn the camera for you. If you want to create
the camera yourself, use NoSpawnFpsCamPlugin instead, and
add a FpsCam component to your camera.
- Add the plugin
Customization
You can modify mouse sensitivity, movement speed and keybindings
by modifying the resource of type bevy_fpscam::Config