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
Virtual Reality Blueprints

You're reading from   Virtual Reality Blueprints Create compelling VR experiences for mobile and desktop

Arrow left icon
Product type Paperback
Published in Feb 2018
Publisher Packt
ISBN-13 9781786462985
Length 250 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Authors (2):
Arrow left icon
John Williamson John Williamson
Author Profile Icon John Williamson
John Williamson
Charles Palmer Charles Palmer
Author Profile Icon Charles Palmer
Charles Palmer
Arrow right icon
View More author details
Toc

Table of Contents (12) Chapters Close

Preface 1. The Past, Present, and Future of VR FREE CHAPTER 2. Building a Solar System for Google Cardboard 3. Building an Image Gallery System for the Gear VR 4. Adding User Interactions to the Virtual Gallery Project 5. Fighting Zombies on the Oculus Rift 6. Scripting Zombies for the Oculus Rift 7. Carnival Midway Games — Part 1 8. Carnival Midway Games — Part 2 9. VR Hardware Roundup 10. VR Terms and Definitions 11. Other Books You May Enjoy

Making objects grabbable

Our carnival midway is progressing nicely and with a teleporting function in place, the scene is becoming a fulfilling VR experience. In this next step, we will build the functions that make it possible to pick up and swing the matter for the Wacky Moles game and throw softballs in the Milk Bottle Toss game. If you have experience with the OVRGrabber and OVRGrabble scripts, feel free to implement the function and move on to the next section.

Follow along if this is your first time using these scripts:

  1. Drill down to the TrackingSpace of the items in the OVRPlayerController prefab, as shown in Figure 7.18.
  2. Right-click on the LeftHandAnchor and choose 3D Object | Sphere. Rename the sphere LeftGrabber and set its scale to (0.2, 0.2, 0.2).
  3. Complete this for the RightHandAnchor as well, naming the object RightGrabber. Figure 7.18 shows the LeftGrabber and RightGrabber...
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 AU $24.99/month. Cancel anytime