I’ve just tested with a 4 and a 7 degrees slope and the movement looks fine
Oh sorry, I meant 5-10 degrees difference on already 90 degrees slope.
Actually, the problem doesn't come from the Y-axis remainder, but the parameter floor_max_angle doesn't seem to work correctly in the function move_and_slide_with_snap and move_and_slide