Original Post
heres my forward/backward camera movement code:
void MoveViewer(GLdouble dStep)
{
GLdouble xDelta,zDelta;
xDelta = dStep*cos(pObject->radsFromEast);
zDelta = -dStep*sin(pObject->radsFromEast);
pObject->xPos += (float)xDelta;
pObject->zPos += (float)zDelta;
}
this code does exactly what it should do, move only forward and backward, however i want another function like this one only i want it to move left to right and i can't figure it out =\ basically how could i modify this code to "strafe" instead of go forward?
Edited by - bcware on 11/12/00 11:31:42 PM