Skip to content

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