Regulation of internal processes regardless of what is happening externally is is called Homeostasis.
The regulation is aimed to make our situation stayed the same as what we are used to. For example, if you're used to be in a cool temperature, your body will respond extremely to hotter temperature until you bring your body back to the cool temperature.