Controls: Arrow keys


Details:

Escape from the heat seeking  missiles or get them to crash in order to win! Be careful not to crash or go out of bounds.

The missiles navigate by calculating the cross product of the velocity vector and the direction vector, then using the signage z coordinate of the resultant vector to determine which way to turn. Additionally, to avoid collision with obstacles and other missiles, when an object enters a trigger collider it gets added to a list and the shortest vector to the object in question is calculated. The missile then determines the optimal path to avoid the obstacles in the list, until they are out of range and they are removed. The missile's turn speed is somewhat low compared to the forward speed so that they do not have perfect object avoidance as part of the fun of the game is getting them to crash into each other or the barriers. Additionally, I originally considered allowing the missiles to slow down to decrease their turn radius but that went against the purpose of the game.


To Do:

  • Bug Fixes
  • Add sound effects and music