|
OpenGL game programming->PlaneView
I just bought the book yesterday and I have a question about the example code on page 120. It's a function for placing a "cockpit" in the world. What I find strange about this function is that it does the rotations in the order roll-yaw-pitch. Would that really work? Shouldn't it be yaw-pitch-roll?
Here is the code:
Edited by - lowlevel on November 15, 2001 7:15:12 AM
Edited by - lowlevel on November 15, 2001 7:15:56 AM
This looks fine to me.
If this is your coordinate system...
Y
| /
|/
X---*---
/|
/ |
Z
Then the yaw, pitch and roll are accurate. If you are complaining about their order, well that doesnt really matter. You can do those rotations in any order since they are each on different axis.
Nitzan
-------------------------
www.geocities.com/nitzanw
www.scorchedearth3d.net
-------------------------
If this is your coordinate system...
Y
| /
|/
X---*---
/|
/ |
Z
Then the yaw, pitch and roll are accurate. If you are complaining about their order, well that doesnt really matter. You can do those rotations in any order since they are each on different axis.
Nitzan
-------------------------
www.geocities.com/nitzanw
www.scorchedearth3d.net
-------------------------
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement