Vitamin D indirectly regulates body temperature by supporting overall bodily functions, including immune system function, hormone regulation, and bone health.