Original Post
Hey guys, new here and first post. Awesome site
Anyways, I have a quick question about how to setup a camera that moves forward at all times and when you hit left or right on the keyboard for example, the camera will start turning left or right so that you could go in a full 360 if you so choose (like driving a car for example). It can (to be simple) stay on the same plane on the Y-axis at all times (doesn't have to move up or down).
I'm using GLUT, and I am setting the camera at each frame using gluLookAt(); If anyone can give me some tips on how to do this I would greatly appreciate it.
Thanks.
Anyways, I have a quick question about how to setup a camera that moves forward at all times and when you hit left or right on the keyboard for example, the camera will start turning left or right so that you could go in a full 360 if you so choose (like driving a car for example). It can (to be simple) stay on the same plane on the Y-axis at all times (doesn't have to move up or down).
I'm using GLUT, and I am setting the camera at each frame using gluLookAt(); If anyone can give me some tips on how to do this I would greatly appreciate it.
Thanks.