Roll roll roll - what's yer attitude?
by Brett Fattori · in Torque Game Engine · 02/20/2003 (1:04 pm) · 3 replies
I've found numerous code examples that show getting yaw (heading) and pitch (gun/nose elevation) but no one, not one single soul, has got any code on the web that talks about getting the roll (bank or sideways tilt) of an object. I know that all the information I need is wrapped up in the currentTransform matrix, but not being a mathematical genius, I'm having a hell of a time getting this information.
If anyone here has this information (or knows how to extract it) I'd be mucho appreciative for the share. In return, I'll slap your name on this Artificial Horizon Gui object I'm working on and release it for everyone. I also have a slight enhancement for the Altitude indicator that will show a tick for the ground level. This is all aimed at aircraft, so maybe Frank Bignone has some ideas (this would work marvelous in DoP too!)
- Brett
If anyone here has this information (or knows how to extract it) I'd be mucho appreciative for the share. In return, I'll slap your name on this Artificial Horizon Gui object I'm working on and release it for everyone. I also have a slight enhancement for the Altitude indicator that will show a tick for the ground level. This is all aimed at aircraft, so maybe Frank Bignone has some ideas (this would work marvelous in DoP too!)
- Brett
#2
www.martinb.com/physics/kinematics/rotation/index.htm
examples.oreilly.com/physicsgame/
The second example has code and a test app.
02/20/2003 (4:25 pm)
These might help:www.martinb.com/physics/kinematics/rotation/index.htm
examples.oreilly.com/physicsgame/
The second example has code and a test app.
#3
Here is the link to the un-approved (as of yet) resource for my Attitude (artificial horizon) indicator/guage.
- Brett
02/28/2003 (10:07 am)
By the way, I finally figured this one out... It seems that GG is busy this week for GDC?? So, instead of waiting for this to be approved (maybe this is against protocol, but it's been waiting for a week)Here is the link to the un-approved (as of yet) resource for my Attitude (artificial horizon) indicator/guage.
- Brett
Torque Owner Mz
users.ece.gatech.edu/~slabaugh/personal/research/euler/euler.pdf