Trying to allign the mouse position to a surface

If you are looking at an infinite plane, as long as you aren’t looking away, there is exactly one length of that looking vector which will touch the plane. The math above is for finding that multiplier.