Skip to content

Commit

Permalink
Fix camera rotation
Browse files Browse the repository at this point in the history
  • Loading branch information
kvark committed Oct 24, 2023
1 parent 7d12c46 commit 0a7cf2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/scene/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,7 @@ fn main() {
let qy = glam::Quat::from_rotation_x(
(drag.screen_pos.y - last_mouse_pos[1]) as f32 * rotate_speed,
);
example.camera.rot = (drag.rotation * qx * qy).into();
example.camera.rot = (qx * drag.rotation * qy).into();
example.debug.mouse_pos = None;
}
}
Expand Down

0 comments on commit 0a7cf2e

Please sign in to comment.