The shockwaves are formed when your speed relative to the air mass is faster than Mcrit, but because the aircraft is moving with the air mass, if you are supersonic the shockwaves will move over the ground at the groundspeed of the aircraft.