LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: TheDude on September 04, 2014, 18:47:39

Title: Camera movement
Post by: TheDude on September 04, 2014, 18:47:39
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.
Title: Re: Camera movement
Post by: Daslee on September 04, 2014, 19:55:38
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.
Title: Re: Camera movement
Post by: TheDude on September 05, 2014, 18:31:02
  ;D Thanks that really helped!