-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/richelbilderbeek/bevy_tdd…
- Loading branch information
Showing
2 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Move a camera with a mouse | ||
|
||
This chapter shows how to move a camera with a mouse. | ||
|
||
The idea is to change the camera's position, rotation and zoom upon mouse input. | ||
|
||
## `main.rs` | ||
|
||
Running the application shows the camera movement in action. | ||
|
||
![The App in action](move_camera_with_mouse.png) | ||
|
||
## Conclusion | ||
|
||
We can now create an `App` with a camera that responds to key presses. | ||
We have tested everything that the `App` does! | ||
|
||
Full code can be found at [https://github.com/richelbilderbeek/bevy_tdd_book_move_camera_with_mouse](https://github.com/richelbilderbeek/bevy_tdd_book_move_camera_with_mouse). |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.