Immersion in virtual reality may relieve some of the pain of contractions before childbirth, a small study suggests.