Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Augmented Reality for Developers

You're reading from   Augmented Reality for Developers Build practical augmented reality applications with Unity, ARCore, ARKit, and Vuforia

Arrow left icon
Product type Paperback
Published in Oct 2017
Publisher Packt
ISBN-13 9781787286436
Length 548 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Authors (2):
Arrow left icon
 Linowes Linowes
Author Profile Icon Linowes
Linowes
 Babilinski Babilinski
Author Profile Icon Babilinski
Babilinski
Arrow right icon
View More author details
Toc

Table of Contents (16) Chapters Close

Title Page
Credits
About the Authors
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface
1. Augment Your World FREE CHAPTER 2. Setting Up Your System 3. Building Your App 4. Augmented Business Cards 5. AR Solar System 6. How to Change a Flat Tire 7. Augmenting the Instruction Manual 8. Room Decoration with AR 9. Poke the Ball Game

The game plan


We are going to build an AR ball throwing game that uses any table in your room as a play court. Players will try to make goals by tossing a ball into a basket or goalpost (for consistency, we'll use the word goal and court throughout the chapter to refer to goal posts or baskets and the play area). The game keeps score. We will implement several different ball games with types of balls, each with different physics properties. The app will recognize objects on your table as obstacles the balls can bounce off.

For implementation we take the following steps:

  1. Set up a new Unity AR project.
  2. Build a simple game court with goal target and ball.
  3. Throw the ball using touch screen input.
  4. Detect when the ball hits the goal, cheer, and add points to the player's score.
  5. Track all time high scores.
  6. Enable Vuforia Smart Terrain so the game really feels like it's on your desk or coffee table.
  7. Expand the game by adding alternative ball game courts for basketball, football, and more.

User experience...

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 $15.99/month. Cancel anytime
Visually different images