The home stretch
For the final part of this chapter, we will set up our PlaceSkeeBallMachine class, which will allow us to airtap the collider of the Skeeball machine. It will then move with our view until we find a good spot for it; airtap again and everything start from the beginning.
I have included a copy of the PlaceSkeeBallMachine script file in the Chapter6Downloads.Zip file. This is a heavily modified version of the TapToPlace script that comes with the HoloToolkit. Of course, as usual I recommend that you type it out. Now, let me add you do not have to type all the comments unless you want to. I recommend that you put in comments that help you keep up with how it works, in your head. Normally, comments are designed for people who ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access