Oculus Rift Movement In A Set Space

If anyone has used Medium for the Oculus Rift you know that as you move around in the set area from the sensor set up your camera inside of the Medium game moves. If you kneel the camera gives the same view and if you walk forward the camera moves forward as you do and looks in the direction that you are looking. I would like to get that same interaction on a UE4 software that I am trying to make. Does anyone know how to make this work or where I might look to find my answer? Any help would be greatly appreciated.