I am having a lot of trouble with raycasts in Godot 4, considering how they've changed. Now there's a raycast node, but i'm trying to do this within code.
I want to be able to cast a ray from the mouse position in the camera viewport (current), to the mouse position in world space (i.e when my mouse is over a box), how can I accomplish this?
For reference, i'm looking at this but the documentation is outdated.