Add rotation transformation (hopefully math is right).