(Auszug aus einem Artikel von Anthony Bailey: "Zigzagging Through A Strange Universe")

Cutting a corner

Why does strafe-running has the effect that it does? Well, by going forward, you get a velocity of 50 units in the direction that you are facing. By activating strafing and going left or right, you can get a velocity of 50 units to one side. By doing both at the same time, you move forward and to the side simultaneously, taking you along the diagonal of a square. (This is where diagonal-running, the other common term for this technique, has its origin.) Since the diagonal of this square is longer than the side you'd move along by just going forwards, you cover more ground in the same time.

Diagram showing the geometry of strafe-runningDiagram key The net result is that you move at 45o to the angle you are facing, but you also move faster. A little geometry shows that the speed up factor you get should be equal to the square-root of two, 1.412... so the percentage increase is (sqrt(2) - 1) * 100%, or approximately 41%.

That's the basic principle. Actually, things are a little more complicated than that, but don't worry about it unless you are interested.

Cutting that corner properly

In fact, some DooMers end up doing a form of strafe-running that gives only two-thirds as much of a speed-up as they should get, because they never understood the particulars of strafing in DooM. The thing is, in DooM there are actually two kinds of strafing.

No, no, not left and right. :-)  There's a more subtle difference of flavour than that. If you activate strafing (the default control is to press ALT) and then use the control you would usually use to turn left or right, you move to the side with a velocity of 50 units. That's true strafing, the sort which I've been talking about.

However, DooM also gives you two separate controls that allow you to strafe with a single keypress. These controls, strafeleft and straferight, function as moveleft and moveright do in Quake. Especially if you are a mouser, you will probably find this method of control slightly easier. Unfortunately, these only give you a side velocity of 40 units, not the 50 you get from doing proper strafing. This means you get rather less value out of strafe-running.

Diagram showing the geometry of slower strafe-running Again you will move along the diagonal of a rectangle, but this time it is not a square with equal sides; one side is 0.8 the length of the distance you cover by moving forward normally. The length of the diagonal is hence sqrt(12 + 0.82) the length of the forward movement side. This gives you a speed-up of only about 28% rather than the 41% afforded by proper diagonal-running. And the angle you move at will not be 45o, but rather 36o to the direction you are facing. So if you've ever noticed yourself not going at the angle you thought you should be, then that's why; you've probably been doing it wrong!