Hololens by torynfarr - 2

Games & ProjectsVR & AR

This repository contains various sample Unity projects designed for the HoloLens 2 spatial computing device.

Unity 2019.4.1f1GNU General Public License v3.0Updated 17 days agoCreated on July 22nd, 2020
Go to source

HoloLens

This repository contains various sample Unity projects designed for the HoloLens 2 spatial computing device.

01.Scene Understanding Find Closest Wall

This sample uses Microsoft’s Scene Understanding SDK and demonstrates how to detect the wall closest to the camera. Specifically, it detects the game objects rendered by the Scene Understanding Display Manager representing wall scene objects. The closest wall is determined by measuring the distance between the camera (the HoloLens 2) and the center of the bounds of each wall game object.

  • Look around until your environment is thoroughly mapped and then tap Stop Mapping.

  • Tap Spawn New Cube to instantiate a cube floating above the near menu.

  • Poke the cube with your index finger on either hand to send it floating to the wall closest to you.

  • Pinch the cube between the thumb and index finger on either hand to grab and move it.

  • A cube sent to the wall closest to you will position itself in the center of that wall, at slightly below eye level, and will rotate to sit flush with the wall.

Additional Information

  • These samples were created using Unity version 2019.4.1f1
  • The Mixed Reality Toolkit Unity package is version 2.4.0
Show all projects by torynfarr