bevy_flycam

Crates.io

A basic first-person fly camera for Bevy 0.4

Controls

Comparison

There are a few notable differences from bevyflycamera...

Usage

  1. Add to Cargo.toml or copy lib.rs to your own file toml [dependencies] bevy = "0.4" bevy_flycam = "0.1"

or

toml [dependencies] bevy = "0.4" bevy_flycam = { git = "https://github.com/sburris0/bevy_flycam" }

  1. Include the PlayerPlugin rust use bevy_flycam::PlayerPlugin;

  2. Add the PlayerPlugin: ```rust

    [bevy_main]

fn main() { App::build() .addplugins(DefaultPlugins) .addplugin(PlayerPlugin) .run(); } ```

Customization

To modify player movement speed or mouse sensitivity, import bevy_flycam::MovementSettings and add it as a resource: ```Rust

[bevy_main]

fn main() { App::build() .addplugins(DefaultPlugins) .addplugin(PlayerPlugin) .add_resources(MovementSettings { sensitivity: 0.00015 // default: 0.00012 speed; 150.0, // default: 12.0 }) .run(); } ```

Contributing

PRs are very welcome.