Adding the Box Collider

Once the GazeManager and cursor are in place, the next step is to identify the gazeable objects. As you know, the Box Collider is the base for collision primitives in Unity. Here, we will handle the gaze for each floor; hence, we would need to add a Box Collider component to each floor object.

For this 3D Model, we have two wings and a few floors in each wing (right Wings - floor 0 to floor 3 and left wings - floor 0 to floor 5), which you can clearly identify from the model. Select individual floor objects from the wings and add Box Collider components from the Inspector window. The following steps explain the process for one of the floors:

  1. Expand the r_wing_grp Game Object from Object Hierarchy.
  2. Select r_wing_third_floor_glass ...

Get HoloLens Blueprints 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.