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

Fixed rotation defect in VRMLLoader.js #355

Merged
merged 1 commit into from
Apr 27, 2024

Conversation

vorth
Copy link
Contributor

@vorth vorth commented Apr 19, 2024

Why

Three.js AxisAngle apparently requires a normalized axis vector. VRML may also, but I had many files (converted from VRML 1.0) that contained un-normalized axis vectors.

Whether there is a defect in my VRML data or not, normalization is idempotent and can only help.

What

I added .normalize() to the axis vector for a rotation in VRMLLoader.js.

Checklist

  • Documentation updated
  • Storybook entry added
  • Ready to be merged

Three.js AxisAngle apparently requires a normalized axis vector.  VRML may also, but I had many files (converted from VRML 1.0) that contained un-normalized axis vectors.

Whether there is a defect in my VRML data or not, normalization is idempotent and can only help.
Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@CodyJasonBennett CodyJasonBennett merged commit c61652b into pmndrs:main Apr 27, 2024
3 checks passed
Copy link

🎉 This PR is included in version 2.29.7 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants