It's probably easier to understand if you think of it more like recreating the same sensations in two different people. It's easier to trick the brain than you might think! [Which is a vague description, but Nagito is pretty sure explaining the level of virtual reality his world has would take forever. Anyway, he has only a layman's understanding of it himself.]
no subject