Hi,
unfortunately, I don't have a VR device, so I can't give you pointer to this.
you don't need to code, I think the problem is in referencing the center point of the screen properly, and that has to do with what camera is used for raytracing.
Bye,
Jean