Creating Cursors for Mobile Devices
A simple way of creating a cursor from mobile device data is to project a point out from the center of your devices screen. The user can then move and orient their device to move the cursor. The live cursor position is stored in an arbitrarily named global variable called liveCursor.
Creating Cursors for HoloLens
Fologram for HoloLens provides functionality for palm tracking using the Track Hands component. Interacting with objects using the center of your palm can be awkward, and a greater sense of control and precision is achieved by creating a 'wand' that extends from the users palm away from the direction you are looking. To give the wand a clear sense of depth, we draw the wand using a vector from the approximate shoulder position of a user to the tracked palm position. The wand is rendered on the device and the live cursor position is stored in an arbitrarily named global variable called liveCursor.