O'Reilly logo

HoloLens Beginner’s Guide by Jason Odom

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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.

The Mesh Renderer of a Unity GameObject is what determines the visibility of that object. It ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required