News for hackers. Stuff that matters.
Re:An Examination of Physics in Video Games by pjc50 on Friday January 31, 2020 @06:44AM (#22200882)
The classic way to get this accidentally:

- if "forward" key held down, add unit motion vector to position

- if "left" key held down, rotate motion vector to left and add it to the position

In that case, you've added two copies of the vector at 90 degrees to each other, and the player moves by sqrt(2) times the normal speed.

There are no comments on this comment yet.