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

feat: Make RotateTo+RotationType functionality more available #3291

Merged
merged 19 commits into from
Dec 9, 2024

Conversation

isokissa
Copy link
Contributor

@isokissa isokissa commented Nov 29, 2024

===:clipboard: PR Checklist :clipboard:===

  • 📌 issue exists in github for these changes
  • 🔬 existing tests still pass
  • 🙈 code conforms to the style guide
  • 📐 new tests written and passing / old tests updated with new scenario(s)
  • 📄 changelog entry added (or not needed)

==================

Closes #3288

Changes:

  • Introduced angleBetween metdhod to Vector class.
  • fixed canonicalizeAngle to never return 2PI
  • RotationType moved to Math
  • small documentation improvements
  • added/modified tests to Vector.rotate() to illustrate the conventions

@isokissa isokissa marked this pull request as ready for review December 2, 2024 23:43
@isokissa
Copy link
Contributor Author

isokissa commented Dec 3, 2024

@eonarheim this is ready, waiting for your review and blessing :) Locally all tests pass, don't know how to trigger the check here on github.

@eonarheim
Copy link
Member

@isokissa Apologies I've been busy with other things, I'll give this a proper look today

@isokissa
Copy link
Contributor Author

isokissa commented Dec 3, 2024

Still stying problems in vector.ts, but it won't tell me what is wrong.

And yeah, I ended up not using lerpAngle's logic, I wrote angleBetween a bit simpler, IMHO.

@isokissa
Copy link
Contributor Author

isokissa commented Dec 8, 2024

Fixed formatting, now it should be 100% ready for review. @eonarheim

@eonarheim eonarheim merged commit 5ecb464 into excaliburjs:main Dec 9, 2024
3 checks passed
@eonarheim
Copy link
Member

@isokissa Thanks a ton! This is a great addition, much appreciated!

@isokissa isokissa deleted the feature/add-angledifference branch December 9, 2024 05:37
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.

Make RotateTo+RotationType functionality more available
3 participants