Buggy Raycast/Kinematic Collision

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

After following this tutorial: https://www.youtube.com/watch?v=D624vqhFABo I noticed that the player character never collides with the ground and is always in the falling state. I made sure there weren’t any typos or logic errors (I got desperate and even copied the code directly from the github) and made a tilemap since I thought the problem would have gone away.
When I tested the level scene again, the player can stand on the leftmost part of a tile - any other part and the player will fall indefinetly just like before. I tried moving various Raycast positions and making test kinematic bodies to double as platforms but nothing ever worked.
Hopefully this info is enough for a solution; any advice would be much appreciated!