Blazing goIITian
Its a function of height alright, but it accelerates only in the vertical direction.Thats Torricelli's theorem.