Teleport locomotion
As we discussed in Chapter 1, Thinking in VR, one of the biggest challenges we face in VR is motion sickness that's triggered when the user tries to move around. One of the most commonly used solutions for this is to teleport the user from place to place rather than to allow them to move smoothly through the space. This breaks immersion, but avoids the problem of motion sickness entirely because it doesn't create a sense of motion at all. For applications where immersive movement isn't a priority, such as architectural visualization, this may be an ideal scheme to employ.
Creating a navigation mesh
The first thing we're going to need for a teleport-based locomotion scheme is a way to tell the engine where players are allowed to move and where they aren't. We can use a navigation mesh to do this job.
Note
A navigation mesh, often shortened to navmesh, is an automatically generated set of surfaces indicating walkable floors in an Unreal level. AI-controlled agents use the navigation...