Hacker News new | ask | show | jobs
by mr_vile 2330 days ago
I'm surprised the article didn't mention bunnyhopping or other kinds of physics exploitation-based gameplay. It could also have talked about games like Rocket League which rely on completely impossible physics to make a fun game.
2 comments

Bhopping in most cases is about carrying built up momentum by jumping again before the movement system returned your speed back to normal.

Movement systems were programmed independently to collision. Physics is mostly used for collision in a standard first person shooter. You can use it for 6dof space or underwater vehicles.

why did bunny hopping exist?

as far as I remember, it was to do with jumping sideways being a lot faster than other movement, but I can't imagine why you'd program that in?

The player can jump both forward and sideways with a maximum speed. If you do that both at once the end result is you exceed to maximum speed diagonally. Now if the player is on the ground he brakes to the maximum speed. So by keeping contact with the ground as brief as possible you maintain more speed.
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.

I think it was more about making it difficult to be hit. Both because of the irregular movement, but also because rockets exploding on the ground causes damage, and being off the ground saves you (hence good players always aiming the RPG at the ground under the opponent).