Raycasting lines off center, 2D platformer.

I was going through this tutorial here.

I tried to ask the guy himself, through comments, through his channel and messaging him, youtube gives either unknown error or an error that makes no sense. Plus nobody else that commented seems to be having the same problem.

I am having several problems

One is that the ray lines are off center as seen in the images.

Secondly the player block lands halfway through the ground block.

Any ideas to why this is happening? Any help is appreciated.

Link to scripts:

Hey, I’d imagine this is occurring because your character’s scale is not (1,1,1). The scale of a collider is always relative to the scale of the object its attached to. This problem is addressed in part two of the platformer series.
Cheers, Seb