HUDs were originally developed for aviation purposes, but they’re just as useful to drivers on the ground.
They work by treating your windshield as a screen, and projecting images onto it. Sometimes, your windshield will need to be coated with a special film to make the display more easily visible.