Thanks!
Yeah, the raycast truly is terrible; but once I realized I should have changed it to the top of the player character it was already too late.
Originally I wanted to highlight the colliding platform, but couldn't come up with a system to do so.