-
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
Heading-Pitch-Roll #2381
Heading-Pitch-Roll #2381
Conversation
Conflicts: CHANGES.md
Conflicts: CHANGES.md
Conflicts: CHANGES.md
Conflicts: CHANGES.md
Conflicts: CHANGES.md
Conflicts: CHANGES.md
Conflicts: CHANGES.md
@t100n would this work for you for youbeQ? |
I'm not sure that the typical user is going to find these functions and know what to do with them. Can we:
|
Code and tests are good, otherwise. |
@bagnell while your in the camera tutorial, does |
Also, I know this is outside the scope of this pull request, but could you also add an example like this to the camera Sandcastle example: var ray = viewer.camera.getPickRay(movement.endPosition);
var position = viewer.scene.globe.pick(ray, viewer.scene);
if (Cesium.defined(position)) {
// convert position to cartographic and display altitude
} |
Conflicts: CHANGES.md
Conflicts: CHANGES.md
So I did a local merge of this into The code
Just like
If we wanted to keep It's possible I'm missing something. What do you guys this? |
Camera heading-pitch-roll
@pjcozzi This is ready. I'll update the blogs posts and send a message to the forum. |
When we merge this, can you please start a new forum thread with a code example that says this will be in Cesium 1.6 on February 2? Also add a link to that thread from this older one: https://groups.google.com/forum/#!topic/cesium-dev/7MOyzJ9_6so |
* centered at the provided origin to the provided ellipsoid's fixed reference frame. | ||
* | ||
* @param {Cartesian3} origin The center point of the local reference frame. | ||
* @param {Number} heading The heading angle in radians. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here and throughout the doc in this PR, we need to describe what heading
, pitch
, and roll
are, e.g., relative to north, geodetic normal, etc. If you want to go all out, draw a picture.
Also, for the forum updates, chime in here too: https://groups.google.com/forum/#!topic/cesium-dev/YY0ly3rne_w And anywhere else you find. |
…stward from north. Pitch is positive moving towards positive local z.
… code examples based on review.
Looks good. Submitting a separate issue for the exception. Even though it is in master, it is now prominent so we should fix it for 1.6. |
Quaternion.fromHeadingPitchRoll
to create a rotation from heading, pitch, and roll angles.Transforms.headingPitchRollToFixedFrame
to create a local frame from a position and heading/pitch/roll angles.