-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Add Vec3 Support for setFromEulerAngles() pc.Quat function #3663
Comments
Hi, I'm interested in tackling this. I have 2 different ideas for how to implement it and wanted to get your opinion on which way is preferred? One, we can overload the Lines 19 to 44 in 9a0697c
Two, the alternative is to create a separate static method with the class
|
I think I'd prefer the option 1 as it's more consistent with the rest of the code base. |
Clarification:
|
My bad. I meant to reference 3663 but accidentally typed 3633 in my PR. Then when I tried to explain this in 3633, I accidentally had the |
Currently when setting a Quat from Euler Angles it only accepts three separate number arguments. It would be very convenient to be able to just pass a Vec3 directly.
https://developer.playcanvas.com/en/api/pc.Quat.html#setFromEulerAngles
The text was updated successfully, but these errors were encountered: