This is how I rotate a Turret in one of my games.
A little different, but might give an idea of other ways.