I have a problem:
To run arround in my Q3-Viewer I do the following calc if the up-key was pressed to move forward in the world:
xpos-= sin(yrotpiover180) * speed;
zpos-= cos(yrotpiover180) * speed;
//yrot is the value I passed into OpenGl
//this way: glRotatef(yrot,0,1,0)
It works perfectly. However if I want to strafe left\right I have to swap sin and cos(at least I calculated this with pencil&paper) but this doesn´t work.
P.s.:Perhaps I did something wrong ´cause I cannot find a precise definition of the angle
-part of glrotatef(…);
Thanx in advance,XBTC!