11-16-2003, 01:40 PM

I am creating a first-person shooter, and in my idle function I put:

xpos += speed*cos((Pi/180)*xangle));

ypos += speed*sin((Pi/180)*yangle));

They allow my pivitol point to "travel" with me, but I still need another equation for the z axis!

xpos += speed*cos((Pi/180)*xangle));

ypos += speed*sin((Pi/180)*yangle));

They allow my pivitol point to "travel" with me, but I still need another equation for the z axis!