I created a raycast but it does not seem to return what I needed.

Godot Version

Godot 4.2

Question

I’m making a top-down shooter perspective game in 3d and I want my character to look at the mouse position thus I created a raycast. But in the code a shown above I think I did everythibg right but the ray seem intersect always to nothing. Is there anything I am doing wrong??

What you get return?
you always can use Raycast Node.