I want to offset a point originating on the player's position based on the direction they are looking, but I don't really know how to achieve it. I did it once, but I can't remember how.
Think of it like this:
@ is the player, ~ is where they are looking. X is the result point.
..~..
.X@..
.....
..X..
..@~.
.....