Add movement with the mouse #90

Merged
raphael merged 3 commits from add-mouse-movement into main 2024-03-31 22:29:50 +00:00
Showing only changes of commit 0acab67a67 - Show all commits

View file

@ -104,6 +104,7 @@ fn keyboard_movement_system(
} }
} }
/// Moves the camera with mouse input.
fn mouse_movement_system( fn mouse_movement_system(
mouse_button_input: Res<Input<MouseButton>>, mouse_button_input: Res<Input<MouseButton>>,
mut query: Query<&mut Transform, With<Camera>>, mut query: Query<&mut Transform, With<Camera>>,