Camera zoom #2849
Camera zoom
#2849
-
Hi, I'm trying to use the Camera to be able to zoom in and out using the mouse wheel. I'm using the following code that I found online, but the update translation line does not compile: pub(crate) fn move_camera_system(
} Any help would be greatly appreciated. Thanks, |
Beta Was this translation helpful? Give feedback.
Answered by
BlackPhlox
Sep 20, 2021
Replies: 1 comment
-
The compiler actually tells you whats wrong |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
gmoller
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The compiler actually tells you whats wrong
transform.translation -= transform.translation *...
cause transfrom contains translation, rotation and scale