Camera movement

Started by TheDude, September 04, 2014, 18:47:39

Previous topic - Next topic

TheDude

Hello I have got a camera working lwjgl, but I would like the camera to move forward according to the direction of the camera (now, if you tun right 90° and press w, the camera moves left, as the z coords plane direction never changes). Any help appreciated.

Daslee

I think that your problem is that you don't use sin and cos functions while moving the camera. http://www.lloydgoodall.com/tutorials/first-person-camera-control-with-lwjgl/ there is a tutorial which explains how to create first person camera.

TheDude

  ;D Thanks that really helped!