Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix free camera panning in the wrong direction #2347

Merged
merged 1 commit into from
Feb 20, 2022

Conversation

DavidLyhedDanielsson
Copy link
Contributor

I noticed the free camera acting unexpectedly and its seems some values needed to be negated. I've attached two video clips to showcasing the issue and the fix. I thought it was a platform issue but it seems the free camera example on raylib.com also has the same issue.

Only tested on arch linux.

Here you can see the panning action "zooming" in and out when panning while viewing at an angle, and the panning moving in the opposite direction when viewing straight down:

withoutfix.mp4

And here it is with this PR applied, it now pans correctly:

withfix.mp4

@raysan5 raysan5 merged commit 7616692 into raysan5:master Feb 20, 2022
@raysan5
Copy link
Owner

raysan5 commented Feb 20, 2022

@DavidLyhedDanielsson Nice! Thanks for the fix!

@DavidLyhedDanielsson DavidLyhedDanielsson deleted the free_camera_fix branch February 21, 2022 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants