Pitch output of Orientation
I am using a splitter and looking at the outputs provided by yaw, pitch, and roll.
Yaw and Roll count up to 180 degrees, then switch to -180 and count back up to 0.
But pitch is blowing my mind... in a bad way.
Pitch is counting up to 90 degrees, then back down to 0 degrees (making it no longer a one to one function) then continues to count down to -90 degrees, then counts back up to 0.
What could possibly be the advantage of this? How am i supposed to detect the difference between the two instances of the same angles that happen at different points in the object's rotation? Does anyone know what is going on with this output or at least a way I can get a one-to-one interval of values that corresponds to the Pitch? Yaw and Roll is inconvenient how it jumps to -180 but I can at least do some math to change the output into an interval from 0 to 360 degrees. With Pitch... I'm completely unable to do that.
-
I decided to use Axis and Angle outputs for my orientation even though it bizarrely starts at -360 degrees every other rotation, so I can continue my logic, but I am still interested if anyone knows why the pitch output acts in such strange ways. Surely there is a good reason... right?
-
How are you testing this, to get that weird result? What's the setup?
-
Euler Rotations have a "rotation order", and in Dreams, that order is yaw (outermost), then pitch, and finally roll (innermost). Imagine a ring rotating about the Y axis, and mounted inside that, another ring rotating about the X axis, and inside that, another ring rotating about the Z axis. Provided that the outermost yaw ring and the innermost roll ring are free to rotate from -180° to +180°, the middle pitch ring only needs the range -90° to +90° in order for the whole rig to be able to achieve any orientation. This is true for any rotation order, not just yaw-pitch-roll - give the outermost and innermost freedom of the full circle and the middle only needs freedom of the semicircle.
If you look at what's happening to an object's yaw and roll when you rotate its pitch past 90° and its pitch starts going down, you'll find that its yaw and roll both flipped by 180º to the opposite point on the circle. Those differences in yaw and roll are how you can tell the difference between two orientations that have the same pitch.
-
Ah yes, it could be that affecting it. If you're using axis/angle mode though, it shouldn't be affected by that.
-
Thank you. I'll have to look up a video to help me visualize the Euler rotations but I am very happy to know there was a rational explanation. It was so confusing!
Please sign in to leave a comment.