Hello, I have made a simple camera. The only problem is it doesn't follow the mouse. Ex: I will want to walk where I'm pointing and it walks forwards. After looking through tutorials I have found trig that I do not understand and did not use it. Can someone please help me with this? I currently have this:

The mouse camera thing works. It's just the movement. If you want the full code reach me on steam ( Runedog48 ) or on my Yahoo ( runedog48 AT yahoo (DOT) com ) I do not want people taking my code that I've worked on.

tonyo_au

02-27-2013, 09:39 PM

It's just the movement
have you set a breakpoint in the keyboard event to be sure you are processing keys correctly.

runedog48

03-01-2013, 05:00 PM

What I meant was that I want the movement to follow where you're looking. So if I press W it goes where I'm currently looking instead of forward.

tonyo_au

03-01-2013, 06:44 PM

So if I press W it goes where I'm currently looking instead of forward.

You mean along the axis from the camera to the taget.

The easiest is to create your view matrix with the gluLookAt function modifing the eye and lookat positions

runedog48

03-01-2013, 07:11 PM

You mean along the axis from the camera to the taget.

The easiest is to create your view matrix with the gluLookAt function modifing the eye and lookat positions

Hmm, I didn't want to use gluLookAt but from what I've read it seems like the best way to do this.