Raycast hitting empty areas, how to solve?

Godot Version

4.2.2.

Question

Hi

I have a code like this that checks for hits, but this code seems to hit literally empty space and returns the torus object (test_StaticBody3D). The cube is to show where the mouse is

What am I doing wrong?

    var query
    var hit:Dictionary
    
    origin = camera_active.project_ray_origin(mouse_pos)
    end = camera_active.project_ray_normal( mouse_pos)*100
    query=PhysicsRayQueryParameters3D.create(origin, end)
   
    hit=space_state.intersect_ray(query)
    if hit:
        print("Hit -> ", hit.collider.name)