How to move something in the direction it's pointing

Hi everyone! I'm trying to recreate the old classic arcade game "Asteroids" in processing, but I'm having a little trouble with the movement. Essentially to move, you rotate from the center so the nose of your ship is pointing where you want to go, then when you hit the up arrow key, it starts to move wherever the nose is pointing. The problem is, I have no idea how to do this. How would you move in the direction the nose is pointing? Could you perhaps make another vertex one pixel in front of the nose and have it move in a direction vector based off of that? Please help me!

Thanks in advance, Anacan

This discussion has been closed.