Ok i thought this would be simple but its clearly way beyond me.
All i want to do is make it so that when a bullet is fired (hitting space bar) while the player is moving (wsad) the bullet has the same directional velocity as the player.
In the example picture you can press w to move forward and then rotate and fire. In the picture below the red arrow is your direction of travel, you rotate and fire and the green line is the path the bullet takes. I want the bullet to be fired along the green line.