Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
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
Microsoft HoloLens By Example

You're reading from   Microsoft HoloLens By Example Create immersive Augmented Reality experiences

Arrow left icon
Product type Paperback
Published in Aug 2017
Publisher Packt
ISBN-13 9781787126268
Length 406 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Joshua Newnham Joshua Newnham
Author Profile Icon Joshua Newnham
Joshua Newnham
Arrow right icon
View More author details
Toc

Nothing but net - throwing paper

As we did in the previous chapter, we will implement throwing by tracking the user's hands and using the tracked direction and displacement to influence the papers flight path, but unlike the previous chapter, we won't be implementing this from scratch, but we'll  take advantage of a script that comes bundled with HoloTookit, namely, the GestureManager script.

GestureManager encapsulates a lot of the logic for detecting tap and manipulation gestures and managing their state. Here, we are mainly interested in the manipulation gesture. The manipulation gesture is activated when the user holds their finger down and, when activated, the user's hand is tracked with its position being updated and made accessible.

Let's get started by jumping back into the Unity Editor and add this script to the scene. GestureManager requires...

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
Banner background image