Researchers are using virtual reality more often in health care, including to treat pain from multiple sclerosis.