I have been trying to devolve a system for a 3d game that will allow direction like in a fps. I have been able to get some of this done myself. The code below is part of it, the only thing I am having issues at it xto,yto,zto (the 4th, 5th, and 6th arguments in the function). I understand what they do in code but I have no idea how to use them to setup a 360 direction system. The code below is a test code I setup and I was wondering if that was a smart way of doing it. If not can anyone lend a idea. Thanks
Code :gluLookAt(cord_x,cord_y+5.0f,cord_z,cord_x-sin(yaw*pi/180),cord_y+5.0f,cord_z+cos(yaw*pi/180),0.0f,1.0f,0.0f);



