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
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
HoloLens Beginner???s Guide

You're reading from   HoloLens Beginner???s Guide Join the AR revolution with HoloLens

Arrow left icon
Product type Paperback
Published in Apr 2017
Publisher Packt
ISBN-13 9781786464729
Length 376 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Jason M. Odom Jason M. Odom
Author Profile Icon Jason M. Odom
Jason M. Odom
Arrow right icon
View More author details
Toc

Table of Contents (11) Chapters Close

Preface Welcome to the New World FREE CHAPTER HoloWorld I am in Control User-Friendly Interface Now That Is How It Should Sound Not So Blank Spaces The Tools of the Trade Share What You Have Got Putting It All Together Fixing Problems

When bounding boxes collide


So, we have accomplished the organization and simple importing processes. That wasn't much of a challenge, was it? Well, now it is time for something with a little more substance.

In this section, we will build seven trigger colliders so that our application will register a score when they are hit by the balls. We will then write a simple script that tells the application manager to change the score based on the trigger that was hit.

To start, we need somewhere to put our collection of collider boxes. As we did with UI and Static Lights earlier in the chapter, create an empty child object of skee, called TargetColliders.

Note

The Mesh Renderer of a Unity GameObject is what determines the visibility of that object. It stores the materials and lighting information. In my experience, I have found that building an actual mesh object and then removing or turning off the Mesh Renderer produces better results in terms of collisions.

The scoring system in our game will be...

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