I understand that there is something for this in Godot 4, but im at the point in my project where i would have to rebuild it from the ground up for godot 4, so instead im coming here to ask because i feel like there has to be a way to detect this in Godot 3.5.1
What i want for my enemy code is for them to shoot a raycast constantly at the player(which is done already), i want it to detect how many tiles are in the way from the enemy to the player, from there i can do some math with the return value to complete the code.
the primary issue is that i cant figure out how to detect the number of tiles that the raycast is going through, ive figured out everything else, its just this problem stopping me, how would i get the number of tiles that a raycast is passing through.