Ok, I’m having some real problem trying to make this work
I figured, first three parameters (eye) are the position of the “camera”, the next three (center) are the vector in wich the “camera” is looking, and the last three (up) is the vector that indicates the up direction.
If I move only the eye coordinates, the camera “flips” direction when I cross the center vector. That´s predictable. So I have to move the center vector whenever I move the eye vector. That´s fine.
But when I rotate, I move the center vector. So now, when I try to move the eye ahead, I can’t just increse the z position of the eye vector, because I ain’t really aligned to the world
So far so good? So I have to move all three coordinates in eye vector to move forward, right? What are the equations to that? I did it once, but I guess I forgot how to do it…
ox, oy, oz what axis rotation takes place on. Must be 0, 0, 1 or 0, 0, -1;
rx, ry, rz is the variables that are used to for the rotation.
nx, ny, nz the result of the rotation. nx, ny, nz are going to be used as your velocity additions for the x, y, z.