Jump to content
  • Advertisement
Sign in to follow this  
V3rt3x

roll-pitch-yaw and heading-pitch-bank, difference?

This topic is 4912 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I read in my 3D math book that “heading-pitch-bank” was also called “roll-pitch-yaw” with roll=bank and yaw=heading, but it is not very clear if the order of rotations (around y, x and z axes for heading-pitch-bank) was the same or not (z-x-y axes for roll-pitch-yaw? or same as heading-pitch-bank, heading/bank and roll/yaw words are just swapped?). Thank you.

Share this post


Link to post
Share on other sites
Advertisement
RPY is the same as the heading notation. Its also called XYZ Euler, which means you apply the rotation matrices like so:
Rr = RotationMatrix of ROLL degrees about X axis
Rp = RotationMatrix of PITCH degrees abotu Y axis
Ry = RotationMatrix of YAW degrees about Z axis
Assumign orientation matrix O

New O = Ry*Rp*Rr*O, the roll is applied first I believe.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
it depends on how you're multiplying the component matrices, premultiplication of HPB will be equivalent to postmultiplication of RPY (BPH).

also, roll is not necessarily about the x axis, some animation packages (lightwave for example) define roll as the z axis and pitch as the x axis. Sort of analogous to being in an airplane with the X axis running along the wings.

whatever you're doing, make sure you settle on a scheme, and do whatever conversions you need to make other stuff the -same- as your stuff, if you try and mix pre/post multiplication or axis orders you will end up with all sorts of insanely hard to debug problems, and generally long after you thought your matrix classes were bulletproof

james

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!