Now prevents character from transversing the y axis while not ascending or descending