Strafe movements

hi i need some help to better understand glulookat

I want to implement strafe movements and i thought it would be logical to just subract from the eye vector and lookat vector like so:

to move left one unit
glulookat(x-1, y, z, ex-1, ey, ez, lx,ly,lz);

but thats not the case … i know angles are involved, so can someone pls pls pls explain the reson to me!

Thanks

You should subtract 1, or whatever you want, from X and EX before calling the function. Otherwise, what you send go gluLookAt will always be the same, so you will not get movement.

Thanks for that, i knew that but i was just giving an example