IntersectRay does not detect TileMapLayer physics tiles

Godot Version

4.4 Stable

Question

Hello-
I’m currently unable to get: PhysicsRayQueryParameters2D.create / IntersectRay to detect my TilemapLayer tiles.

I have created the tilemaplayer with a physics layer of 1, and created the physics shapes as well.
I am calling the method as follows:

@export_flags_2d_physics var collision_layers
var space_state = get_world_2d().direct_space_state
var query = PhysicsRayQueryParameters2D.create(test_start, test_end, collision_layers, [self])
var result = space_state.intersect_ray(query)

collision_layers is set to layer 1 as is my TilemapLayer tileset

What am I doing wrong? Can anyone confirm that this works for them??

thank u-