changed variable cameraRotX to mainHeading