3 ms·
Quake was like this as well. When the walk and strafe keys were held it would set xvel and yvel both to the base walking speed (or its negative) resulting in fa
by bitwize 10y ago
Quake was like this as well. When the walk and strafe keys were held it would set xvel and yvel both to the base walking speed (or its negative) resulting in faster diagonal movement. The correct approach would be to multiply them by √2/2 if diagonal movement is commanded, so that the magnitude of the velocity is the base walking speed.