I have the camera's roll, yaw, pitch, x, y, and z, and I need to change the position based off of the WASD keys. For example, If the yaw is 0 and I press W, the x increases by 1 and the z doesn't change. If the yaw is 90 the z increases by 1, and all the values of the yaw 0-360.
I just need a formula to do that. I have a decent idea of how I would change to to move backwards, left, right, etc... I just don't know what it would be.
I looked around and didn't see any solutions that worked, I tried a couple different methods using trig (cos and sin), but I know I need to use a matrix.