The render file is the one you need to include if you need to cast any ray.

Its function ray_cast is the one you’re interested in as it is required to get the result of any raycasting. This method launch the Raycasting Process.