If you parse the rotation at the start, as I suggest, then I think you can delete this function and rename updatePlayerSize() above so it becomes the new setPlayerSize().