idAngles &a = rView->viewaxis.ToAngles(); a.pitch = -180 / M_PI * atan2( lookAtPoint[2], dist ); a.roll = movie.freecam.angles.roll;