but their movements are not correct, I not get fix it.
If someone can look at the code and try to help fix it
I'm using Code::Blocks (Opengl w/ SDL)
http://www.easy-share.com/1911197554/GL_GAME.rar
The functions of camera are:
In your render function before drawing anything you have to call Cam.setView(); To rotate around the (global) y-axis you call Cam.rotateGlob(degree, 0,1,0); while to look up/down you would call Cam.rotateLoc(degree, 1,0,0); Moving forward would be Cam.moveLoc(0,0,distance); while being shoved in a fixed direction would be Cam.moveGlob(deltaX, deltaY, deltaZ);
I am trying to fix almost 2hours
Thanks