Move tool, with spatial mapping

The first editing feature we'll add to the project is a tool for moving the picture into place on walls in your room. This will take advantage of the HoloLens spatial mapping capability. Let's add it first, then look at spatial mapping in more detail.

The plan is to enable positioning when the user clicks the Move button. Clicking again will cancel the Move command. Specifically, the Move tool will work like this:

  • Pressing the button will activate the Move manipulation mode. The button will grow enlarged to show it is activated.
  • As you move your gaze, the button acts like a handle on the picture object. The picture follows your gaze to move to a new position.
  • The tool uses spatial mapping to detect vertical ...

Get Augmented Reality for Developers 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.