-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Quaternion.fromHeadingPitchRoll uses wrong axis? #3256
Comments
I just noticed this.. it does feel very unintuitive to me. However, the tests seem to be written assuming these axes as well (obviously, or they wouldn't pass). And the documentation also states that this is how it works, so I suppose it is intentional. (Regardless, I would also like to hear the reasoning behind why this method is written this way 😄) |
Hello, |
@kaktus40 can we close this or perhaps does it just need a doc update? |
@pjcozzi here's where the confusion is: If you have So it's up to you if you think it's something we need to change or just something we need to document somewhere. |
Sounds great, thanks @kaktus40! |
Also reported here: https://groups.google.com/forum/?hl=en#!topic/cesium-dev/bsPTytXzNqc |
@hpinkos Read the google group conversation. Until a PR is submitted and approved for this, is there a workaround for using the VelocityOrientationProperty with sampled positions other than recreating the model to face east? The model we are using points north, but slides around sideways. |
@Zizekftw For now, I would recommend re-orienting your source model and converting that t glTF. I believe it should be forward on the X axis. |
Hello, now that localFrameToFixedFrameGenerator has been implemented in this pull, maybe this issue can be closed? Or maybe we should wait that issue to be resolved before closing it? |
Perhaps it is OK to close this now as a duplicate of #5666. |
Congratulations on closing the issue! I found these Cesium forum links in the comments above: https://groups.google.com/forum/?hl=en#!topic/cesium-dev/bsPTytXzNqc If this issue affects any of these threads, please post a comment like the following:
I am a bot who helps you make Cesium awesome! Thanks again. |
Hi,
Testing the fromHeadingPitchRoll method, I got erratic results until I spotted what I (humbly) believe is a wrong use of axis.
Considering a eastNorthUp frame, the original method applies roll value on X axis and pitch on Y where I would expect the opposite.
When overriding the method with my own (swapped X and Y), I get the expected results.
I may be mistaken on assuming the eastNorthUp frame though.
If I am wrong, I would be happy to hear the proper reasoning for using this method.
Thanks,
Xavier.
The text was updated successfully, but these errors were encountered: