AR and VR have been used as distraction tools during medical procedures or chronic pain management. By providing engaging and immersive experiences, they help divert the individual's attention from the pain, reducing their perception of discomfort and distress.