If unobstructed, a wave will not change direction; however, if a wave encounters an obstacle such as the ocean floor, coastline, piers, or harbor wall, it can refract (bend) and change direction.