According special relativity, the clock ticks slower on spaceship moving at relativistic speed because the light travels a longer diagonal distance with respect observer on ground. My question is if light is a wave then how it gains the velocity of spaceship such that it travels in a diagonal [![enter image description here][1]][1]


  [1]: https://i.sstatic.net/URB85.jpg