Example #1
0
        private GeometryHandler.Vector takePointingSample()
        {
            GeometryHandler.Vector vector = new GeometryHandler.Vector();

            while (!this.geometryHandler.vectorOK(vector))
            {
                vector.reset(jointsToTrack[0], jointsToTrack[1]); // (RIGHT_ELBOW, RIGHT_HAND)
            }

            return vector;
        }
Example #2
0
        private GeometryHandler.Vector takePointingSample()
        {
            GeometryHandler.Vector vector = new GeometryHandler.Vector();

            if (isTrackableUser(Fubi.getClosestUserID()))
            {
                while (!this.geometryHandler.vectorOK(vector))
                {
                    vector.reset(jointsToTrack[0], jointsToTrack[1]); // (RIGHT_ELBOW, RIGHT_HAND)
                }
            }
            else
            {
                Thread.Sleep(10); // Wait for 10ms
            }

            return vector;
        }