Get camera to flip nicely when theta passes through Math.PI and Math.PI*2 in tutorial 9.