Finding a "good" place for the bin

As discussed earlier, our goal here is to provide a way for the user to manually place the bin; our approach is to attach a bin to the user's gaze (as implemented earlier) and follow it around, updating its position and orientation when in a valid position. Once happy, the user can place the bin using the tap gesture. In this section, we will implement this functionality; in the next section, we will implement the functionality used to detect the tap gesture to place the bin.

Before writing any code, let's quickly discuss how we will implement this. As the app transitions from scanning to placing, we will instantiate the Bin prefab and attach a component to it that will be responsible for making the bin ...

Get Microsoft HoloLens By Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.