View Full Version : Strafe movements

12-29-2001, 07:51 PM
hi i need some help to better understand glulookat http://www.opengl.org/discussion_boards/ubb/smile.gif..

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 http://www.opengl.org/discussion_boards/ubb/smile.gif.. i know angles are involved, so can someone pls pls pls explain the reson to me!


12-29-2001, 08:59 PM
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.

12-29-2001, 09:27 PM
Thanks for that, i knew that but i was just giving an example http://www.opengl.org/discussion_boards/ubb/smile.gif