No output from intersect_ray

Godot Version

4.6

Question

Attempting to use a ray to intersect a GridMap where the mouse is clicking. The "from" and "to" are setting appropriate points, the GridMap is on collision layer 2 as is laid out in the .create method. The intersect_ray is coming up entirely empty.

var mouse_pos = get_viewport().get_mouse_position()
var from: Vector3 = camera.project_ray_origin(mouse_pos)
var to: Vector3 = from + camera.project_ray_normal(mouse_pos) * RAYDISTANCE
var ray_params := PhysicsRayQueryParameters3D.create(from, to, 2)
ray_params.collide_with_areas = true
var ray_result: Dictionary = get_world_3d().direct_space_state.intersect_ray(ray_params)

I thought maybe the tiles needed a collision shape, or the GridMap itself, and neither worked. Still just comes up empty.