Smoothing the horizontal acceleration using math.Approach
Smoothing vertical acceleration