PDA

View Full Version : pitch yaw and roll faq?



apit
09-02-2003, 08:02 AM
i have try this formula to make yaw and pitch in 3d program... how can i roll the object?

yaw
-----
void orientMe(float ang)
{
lx = sin(ang);
lz = -cos(ang);
}

pitch
-------
void orientMe(float ang)
{
ly = sin(ang);
lz = -cos(ang);
}

roll???

al_bob
09-02-2003, 09:53 AM
You might find this (http://www.j3d.org/matrix_faq/matrfaq_latest.html) useful.