The process by which the body controls its temperature in response to environmental temperature changes.