You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use `NoCameraPlayerPlugin` if you do not want this and make sure to use `.insert(FlyCam)` on your own camera or else this plugin won't know what to move.
45
+
46
+
```rust
47
+
use bevy_flycam::prelude::*;
48
+
```
49
+
50
+
This will spawn a camera for you.
51
+
Use `NoCameraPlayerPlugin` if you do not want this and make sure to use `.insert(FlyCam)` on your own camera or else this plugin won't know what to move.
46
52
47
53
3. Add the `PlayerPlugin`:
48
-
```rust
49
-
#[bevy_main]
50
-
fnmain() {
51
-
App::new()
52
-
.add_plugins(DefaultPlugins)
53
-
.add_plugin(PlayerPlugin)
54
-
.run();
55
-
}
56
-
```
54
+
55
+
```rust
56
+
#[bevy_main]
57
+
fn main() {
58
+
App::new()
59
+
.add_plugins(DefaultPlugins)
60
+
.add_plugin(PlayerPlugin)
61
+
.run();
62
+
}
63
+
```
57
64
58
65
Alternatively you can see the example `basic.rs` or `scroll.rs` located in the examples folder.
59
66
You can run the example by cloning this repository and run the command: `cargo run --release --example basic`
60
67
61
68
## Customization
69
+
62
70
To modify player movement speed or mouse sensitivity add it as a resource. </br>
63
71
Same thing goes for the keybindings used for moving the camera.
0 commit comments