flatten ray step for hypotenuse for step_x and step_z