When your body is just too cold, the arrector pili muscles located connected to hair follicles get up, triggering the hair in these follicles to perform the exact same. These hairs then sort a warmth-trapping layer earlier mentioned the epidermis. This process is formally called piloerection, derived from the Latin words 'pilus' ('hair') and 'erect