DEATH simulators that use virtual reality headsets to create an out-of-body-experience are being used to cure people's fear of dying.

Scientists are using the technology to make test subjects feel as though they are leaving their body.

2 Brit Marling stars as Prairie Johnson (AKA The OA) in the mysterious new Netflix show Credit: Netflix

The notion of having an out-of-body-experience and simulating death to see if there is an afterlife was recently brought to light in hit Netflix series The OA.

But this latest stunt is rooted in science.

Mel Slater and a team at University of Barcelona made 32 people feel as though the virtual reality environment seen through a head set was real.

2 Mel Slater tested 34 subjects in the death simulator

The participants were seated on a chair wearing an Oculus Rift headset and covered in movement trackers and vibrators.

Every move the subjects made was mimicked by their avatar body and any sensation felt by the fake body was replicated using the vibration tech.

They were then transported to a virtual living room in which they could move their legs and kick balls thrown at them from a distance.

As soon as the person began kicking at the right time - indicating that they felt in sync with the avatar body - the scene appeared to zoom out, leaving the avatar sitting down and giving the user the feeling that they were levitating on the ceiling.

Related stories ZUCK'S BIG SECRET Zuckerberg reveals secret plans to plough BILLIONS into virtual reality during Oculus Rift court case Come fly with me Virtual reality games, sleep rooms and movies on your phone... the future of airline cabins looks awesome 'THE FUTURE OF SPORT' Intel shows off virtual reality technology that could change the way we watch sport FOREVER THE FUTURE OF TRAVEL How flying hotels, virtual reality tours and space travel will all become normal holiday experiences Exclusive SWEET DREAMS Candy Crush developer King exploring possibility of making virtual reality version of hit game AROUND THE WORLD IN 80 MINUTES What is Google Earth VR? The virtual reality ‘killer app’ – here’s what we know

Participants were asked whether they were afraid of death before beginning the trial.

They were later asked the same question.

The candidates that were able to "feel" their virtual body were less likely to be afraid because they may be more likely to believe in an afterlife having sensed the feeling of leaving their body, the study suggested.

It stated: "Fear of death in the experimental group was found to be lower than in the control group. This is in line with previous reports that naturally occurring out-of-body-experiences are often associated with enhanced belief in life after death."

After the conclusion of the virtual reality exposure participants were asked to complete a subscale (‘Death of Self’) of the Collett-Lester Fear of Death scale designed to measure how scared of dying they are.

We pay for your stories! Do you have a story for The Sun Online news team? Email us at tips@the-sun.co.uk or call 0207 782 4368