Waves are never 90 degrees directly from the shore, then there is also a different angle from the wind towards the shore-line. When the water current flows across loose sand, it drags the sands along the bottom and is frequently piled up to form ripples or dunes.