Skip to main content

Search

Pitch output of Orientation

  • pierogigon

    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?

  • TAPgiles
    Great answers

    How are you testing this, to get that weird result? What's the setup?

  • TheBeardyMan

    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.

  • TAPgiles
    Great answers

    Ah yes, it could be that affecting it. If you're using axis/angle mode though, it shouldn't be affected by that.

  • pierogigon

    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.