This function converts the angle and distance to the relative x and y See Inside
Used for my Projs https://turbowarp.org/838839937/fullscreen?hqpen