3D - Code Raycast collision with Gridmap

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Ash_Grey

Hello everyone,

I made a Raycast that works as it should and properly collides with Staticbodies. The code returns the collision in a dictionary as it should using space_state.intersect_ray(from, to)

However, this Raycast does not collide with my Gridmap, which is made of a Staticbody with a MeshInstance and a CollisionShape.

Any idea why ?

This is the Raycast code
That is the Scene that I converted into a MeshLib
That is my main scene setup

The ultimate goal is to detect which tile is being hit, but I’m pretty confident I can achieve it with world_to_map once I overcome this collision issue.

Thank you for your help !