I wanted to add a push off the ledges for my platformer using raycast2D but it don’t collide with my tilemap. The collision layers are the same and my raycasts collide with areas and bodies.
I tried some solutions from reddit but it didn’t work
Still not detecting the tilemap
But I discovered something weird, sometime the raycast says it’s colliding when it shouldn’t (exemple of the “glitch”: 2024-07-23 21-13-46.mp4 - Google Drive)
The bools in the terminal say for each raycast if it’s colliding
for every raycast in your player script? (only if the player is on collision-layer 1)
And make the parent of the raycast a node2d instead of a node maybe. Theres a possibility that, since the “Node” doesnt have a position, it leads to weird interaction with the children position