The purpose of the Entity class is to hold reference Renderer and Node, and use the position of Node and the orientation to update the buffer of Renderer before rendering. 

Create a new class called Entity in the Content folder of the AssistantItemFinder  project. With the new class open, add the namespace System.Numerics, Windows.Perception.Spatial, and AssistantItemFinder.Common and make the following amendments to the class:

internal class Entity{ public string Tag { get; private set; } public Node Node { get; set; } public Renderer Renderer { get; set; } public Vector3 Position { get; set; } public Vector3 EulerAngles { get; set; } public Vector3 Scale { get; set; } public bool Visible { get; set; } public bool Enabled { get; set; ...

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

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.