I seem to fail to see the function in the API, because it's obvious it's there.
I have a CMatrix4, which I makeIdentity();
I want to rotate this matrix around the Y axis a certain angle alpha, i.e. having
Code: Select all
1 0 0 0
0 1 0 0
0 0 1 0
I'd like to get
Code: Select all
ca 0 sa 0
0 1 0 0
-sa 0 ca 0
sa=sin alpha
(I hope I haven't messed the rotation matrix )
Thanks,
Kak