Original Post
Hi, I have a camera for my engine (well its not much as of now, considering it doesnt rotate right, lol) and i keep track of the Up, Right, and Forward vectors for it, now, based on a set of euler angles, id like to be able to calculate any two of those (ill just cross for the 3rd) Now this isnt that hard, but what i want to do, is not use matrices to do this, because if i have a matrix for yaw, pitch, and roll thats what, 12 trig functions? plus a bunch of multiplies and adds to concatonate all the matrices, now, there has got to be a way to skip over the matrices and rotate the vectors around the origin like that (now that doesnt sound hard, but only the first rotation would truely be around the origin, the rest would have to be in "object space") i actually have a formula to do this, but alas, its a lamothe book, and the equation is wrong, so, i googled, and found one that DID work, but unfortunately, it seems that the multiplication was in a different order, or the matrices were transposed. so anyways, i was hoping someone would be able to grasp waht the heck my tired brain is trying to say and have the equation for a vector rotated around the origin (i just had a revelation, if i did roll, pitch then yaw, then i COULD have it be around the origin coudlnt i? and then i could just use sin and cos to find the components in each plane still wouldnt mind having the other way, especially if im going crazy with my revelation :-D thanks -Dan [Edited by - Ademan555 on January 9, 2005 4:24:16 PM]