Raycast collision not working on Z and -X in the gridmap

Godot Version

4.2.stable

Question

For some reason, when i check collision with a gridmap using a raycast it only works on the -Z and X axis, when it collides in any other axis it doesn’t detect, what could it be?

Many things! post your project as a git or zip