For bodies with a size scale larger than 10 cms to several meters meteor visibility is due to the atmospheric ram pressure (not friction) that heats the meteoroid so that it glows and creates a shining trail of gases and melted meteoroid particles.