I am trying to detect when the left or right hand is in the FOV. I couldn't find any variable that does this, so I am trying to manually doing it by checking the state.source.id from the HandInput script. Seems the id is randomized for each hand, being 0 or 1 either left or right.
When both hands are in the FOV then one is 0 and the other one is 1. I've noticed that's similar to what the Leap Motion SDK does.
Seems a unique ID is assigned to the hand, whose value remains the same across consecutive frames while the tracked hand remains visible. If the tracking is lost (for example, when a hand is occluded by another hand or when it is withdrawn from or reaches the edge of the Hololens field of view), it seems to assign a new ID when it detects the hand in a future frame.
I was planning to identify which hand is farthest to the left or right, but I am curious if there already a variable that tells you if it's the left or right hand?
Thanks