EvanQuan/hover-wars

Player 1 resets the direction its facing when it collides with another entity.

EvanQuan opened this issue · 2 comments

Ben talked about this bug in his email.

  1. Open a game with 2 players and 0 bots for easy testing.

  2. Try to collide into player 2 at any direction, at any velocity.

  3. Player 1 instantly faces the direction that player 2 is facing upon collision.

Either it's the same direction as the player that player 1 hits, or player 1's direction is just reset it's its initial direction. I don't know which one it is.

Source of the problem is in:

HovercraftEntity::resetIfNotHoriztonal()