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 camera rotation #206

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

albertvaka
Copy link
Contributor

@albertvaka albertvaka commented Oct 4, 2020

Ensure rotation happen after translation, so it's done from the center of the camera, and scale happens first so it is independent of translation.

Fixes #26, #124, #133 and #198.

I can't think of a use case where the previous order would be desired, but if it is we could turn the use_centered_origin boolean into an enum and support all different options (more in the line of #133).

Ensure rotation and scale happen after translation, and from the center of the camera.

Fixes grimfang4#133 and grimfang4#124
@albertvaka albertvaka changed the title Fix camera rotation WIP: Fix camera rotation Oct 5, 2020
@albertvaka albertvaka changed the title WIP: Fix camera rotation Fix camera rotation Jan 27, 2021
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.

Camera and matrix transforms don't seem to mix intuitively
1 participant