Trigonometry for Games: Player controls for rotating and moving in 360 degrees (Asteroids style)
We're going to create a script for your player to make it rotate with the left and right arrow keys, and move forwards with the up arrow key.
This tutorial builds on concepts covered in How to make controls for a top-down player (RPG style), and also serves as an introduction to trigonometry with the sine and cosine math functions (don't worry, we'll keep it really basic).