It would appear that trump turning his head right, as he was speaking, saved his life.
The gunman was on a side roof, presumably off to the left of the screen given how the crowd looks over to the left.
This would have been a very different moment if trump was facing forward as he shot - that wouldn’t have just nicked his ear and was at the right height for a head shot.