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

[rmodels] Fix normal transform in UpdateModelAnimationBones #4634

Merged
merged 2 commits into from
Dec 24, 2024

Conversation

Bigfoot71
Copy link
Contributor

@Bigfoot71 Bigfoot71 commented Dec 23, 2024

As requested here: #4581 (comment)

I fixed the function by transforming the normals using only the rotational part of the transformation matrix, obtained via its inverse transpose.

I also simplified the inversion of the quaternion inRotation, which was being calculated twice within the same scope.

Edit: the examples models_animation, models_bone_socket, and models_loading_gltf were successfully (re)tested.

@Bigfoot71
Copy link
Contributor Author

Sorry for the force push, I just renamed the commit messages because I made a mistake, and they would have poorly represented the history. Nothing else was changed.

@raysan5 raysan5 merged commit 873bf31 into raysan5:master Dec 24, 2024
14 checks passed
@raysan5
Copy link
Owner

raysan5 commented Dec 24, 2024

@Bigfoot71 thanks for the review!

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