Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
richelbilderbeek committed Jul 11, 2024
2 parents 9ae6b7b + 3588e71 commit 60305a9
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions move_camera_with_mouse.md
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).
Binary file added move_camera_with_mouse.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 60305a9

Please sign in to comment.