I have a camera. It has a x-axis vector in global position (transform.forward). How to extend this "ray" until Y is 0?
Now done through the loop, add in transform.position + transform.forward, until Y becomes 0. Otherwise, it never came up. I found an approximate name of the problem as “finding a trace of a line”
That is, we need a point of intersection with the axis in the direction of transform.forward