How does Unreal gather position and rotation from VR headsets

I need to get the same value that the built in VR blueprints get and Im not sure where to look for this. Thanks

Engine\Plugins\Runtime\Oculus\OculusVR\Source\OculusHMD\Public\IOculusHMDModule.h
Don’t know the details, but I think looking into this would be a good place to start.

All VR and AR support in UE4 is plugged in to common interface called XRSystem:

And you can access it from variable in UEngine (via GEnigne) from here:

THANK YOU!!!

Seriously my friend this is exactly what I was looking for, you are a savior!