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
Augmented Reality Game Development

You're reading from   Augmented Reality Game Development Create your own augmented reality games from scratch with Unity 5

Arrow left icon
Product type Paperback
Published in Jan 2017
Publisher Packt
ISBN-13 9781787122888
Length 334 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Micheal Lanham Micheal Lanham
Author Profile Icon Micheal Lanham
Micheal Lanham
Arrow right icon
View More author details
Toc

Table of Contents (11) Chapters Close

Preface 1. Getting Started 2. Mapping the Player's Location FREE CHAPTER 3. Making the Avatar 4. Spawning the Catch 5. Catching the Prey in AR 6. Storing the Catch 7. Creating the AR World 8. Interacting with an AR World 9. Finishing the Game 10. Troubleshooting

Throwing the ball


We now have a great-looking ice ball just in front of our walking monster. Time to get that ball in motion using the following steps to add the objects and scripts:

  1. Drag the DualTouchControls prefab from the Assets/Standard Assets/CrossPlatformInput/Prefabs folder in the Project window to the Hierarchy window.
  2. Rename the DualTouchControls object to Catch_UI in the Inspector window.
  3. Expand the new Catch_UI object and delete the TurnAndLookTouchpad and the Jump objects. When prompted to break the prefab, click on continue.
  4. Expand the MoveTouchpad object and delete the Text object by selecting it and pressing delete.
  5. Select the MoveTouchpad object and rename it ThrowTouchpad in the Inspector window.
  6. Open the Anchor Presets in the Rect Transform component, and select the stretch-stretch option in the bottom-right corner while holding the pivot and position keys. This will expand the overlay to fill the screen just as we did before for the free look camera.
  7. Select the Image component...
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