Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Unreal Engine 4 Virtual Reality Projects

You're reading from   Unreal Engine 4 Virtual Reality Projects Build immersive, real-world VR applications using UE4, C++, and Unreal Blueprints

Arrow left icon
Product type Paperback
Published in Apr 2019
Publisher Packt
ISBN-13 9781789132878
Length 632 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Authors (2):
Arrow left icon
Robert Ruud Robert Ruud
Author Profile Icon Robert Ruud
Robert Ruud
Kevin Mack Kevin Mack
Author Profile Icon Kevin Mack
Kevin Mack
Arrow right icon
View More author details
Toc

Table of Contents (20) Chapters Close

Title Page
About Packt
Contributors
Preface
1. Thinking in VR 2. Setting Up Your Development Environment FREE CHAPTER 3. Hello World - Your First VR Project 4. Getting Around the Virtual World 5. Interacting with the Virtual World - Part I 6. Interacting with the Virtual World - Part II 7. Creating User Interfaces in VR 8. Building the World and Optimizing for VR 9. Displaying Media in VR 10. Creating a Multiplayer Experience in VR 11. Taking VR Further - Extending Unreal Engine 12. Where to Go from Here 1. Useful Mind Hacks 2. Research and Further Reading 3. Other Books You May Enjoy Index

Using VRExpansion classes


We're going to use this project both as a review of the things we need to do when we set up a scene for VR and as an introduction to the VRExpansion classes.

Adding navigation

The first thing we're going to need to do, of course, now that we have our environment, is set it up with a nav mesh so we'll have the option to use teleport locomotion and so AI characters can navigate through it.

Begin by checking your collision environment:

  1. Hit Alt + C (or the from the viewport, Show | Collision) to visualize your collision environment and make sure it looks sensible.

The collision here looks good, so let's add a Nav Mesh Bounds Volume to the scene.

  1. Drag a Nav Mesh Bounds Volume into the scene and scale it to encompass the areas where you want your player to be able to navigate.
  2. The following values work reasonably well: Location (X= -11420.0, Y= -3790.0, Z= -490.0), and Scale (X= 100.0, Y= 160.0, Z= 20.0).

Remember that you can make your life easier when setting up volumes by...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime