generated from tipragot/rust
Add movement with the mouse #90
|
@ -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>>,
|
||||||
|
|
Loading…
Reference in a new issue