The term you are looking for is 'refraction'. Refraction is the phenomenon of the bending or deflection of a wave when it passes from one medium to another. This change in direction occurs due to the difference in the speed of the wave in the two media.