Dunno if you already got an answer to this, but if you're using move_and_slide() or to move the character, the second, optional argument is up_direction. It takes a vector and tells the function what "up" is and, by proxy, what a floor is. You can pass the vector constant Vector2.UP (for 2D, there's probably an equivalent in 3D) into the argument or define your own. Hope that helps.