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

[raymath] Fix for issue 4454, MatrixDecompose() gave incorrect output for certain scale and rotations #4461

Merged
merged 1 commit into from
Nov 3, 2024

Conversation

waveydave
Copy link
Contributor

For transform matrices with certain ranges of rotation angles and scaling factors, MatrixDecompose() would give incorrect answers.

I narrowed down the issue to where the scaling factors are removed from the cloned transform, before the rotation is extracted: the scale factors needed to be taken into account for extra matrix members.

The models_loading_gltf example still works correctly after this fix.

Further tests and discussion here: #4454

@raysan5 raysan5 merged commit 66a4f2e into raysan5:master Nov 3, 2024
@raysan5
Copy link
Owner

raysan5 commented Nov 3, 2024

@waveydave Thanks for the review!

psxdev pushed a commit to raylib4Consoles/raylib that referenced this pull request Nov 18, 2024
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