fn camera control_control_system #14503
Unanswered
SensorEvolve
asked this question in
Q&A
Replies: 1 comment 3 replies
-
|
It looks like you have this in your parameters: fn camera_control_system(
mut mouse_motion_events: EventReader,
mut mouse_wheel_events: EventReader,
mut query: Query<&mut Transform, With>,
) {
fn camera_control_system(
mut mouse_motion_events: EventReader<MouseMotion>,
mut mouse_wheel_events: EventReader<MouseWheel>,
mut query: Query<&mut Transform>,
) {You can drop the |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I get errors below at //Apply the transformations to the camera, any help would be deeply appreciated.
`fn camera_control_system(
mut mouse_motion_events: EventReader,
mut mouse_wheel_events: EventReader,
mut query: Query<&mut Transform, With>,
) {
let mut rotation_delta = Vec2::ZERO;
let mut zoom_delta = 0.0;
After this line i get this errors and i have no clue why? ■■ this expression has type
Mut<'_, bevy::prelude::Transform>}
`
Beta Was this translation helpful? Give feedback.
All reactions