// Given the player's rotation, calculate which direction the player should rotate, if any.
if(Math.abs(goalAngle - super.getRotY()) > ROTATION_ACCURACY){
if(Math.abs(goalAngle - super.getRotY()) < 180){
if(goalAngle - super.getRotY() < 0){ super.increaseRotation(0, -super.getTurnSpeed(), 0); }
else{ super.increaseRotation(0, super.getTurnSpeed(), 0); } }
else{
if(goalAngle - super.getRotY() < 0){ super.increaseRotation(0, super.getTurnSpeed(), 0); }
else{ super.increaseRotation(0, -super.getTurnSpeed(), 0); } } }