O'Reilly logo

Unreal® Engine VR Cookbook: Developing Virtual Reality with UE4 by Mitch McCaffrey

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 4. Trace Interaction

VR allows developers to tap into previously inaccessible natural forms of input. A major one of these is the player’s head, and so this chapter discusses a way to use this input to interact with objects in your VR worlds.

Understanding traces is essential for nearly all VR games. In this chapter, you create a modular system for user interaction that can be easily expanded.

Understanding Trace Interaction

Trace interaction in VR is a common method of allowing the player to interact with the in-game world by detecting what object that player is looking (or, in the case of motion controllers, pointing) at.

A trace (or ray cast) has a broader definition in the context of UE4 and an even broader definition in the context ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required