It is necessary to place the elements on the ground.
How to do it? Ie, there are coordinates x and y, how to find and y?
The answer is found by yourself. In the second parameter of raycaster, it is necessary to transmit the vector of the direction of the ray, and not the coordinate of the second point of the ray.