VR equipment works by rendering a scene from your perspective at any given moment, as determined by your VR headset. As you move your head and change your perspective, the virtual environment is re-rendered in real time to reflect that change. This happens so quickly and smoothly that your brain is fooled into thinking that the virtual environment is real.