예제 #1
0
        public void PromotePotentialHand(PersistentHand potential)
        {
            _Velocity.InitValue(potential.Velocity);
            _X.InitValue(potential.X);
            _Y.InitValue(potential.Y);
            _Z.InitValue(potential.Z);
            _Pitch.InitValue(potential.Pitch);
            _Roll.InitValue(potential.Roll);
            _Yaw.InitValue(potential.Yaw);
            _FingerCount.InitValue(potential.FingerCount);
            HandTracker.InitPosition(potential.HandTracker.CurrentPosition);
            FingerTracker.InitPosition(potential.FingerTracker.CurrentPosition);

            Id             = potential.Id;
            DetectedHand   = potential.DetectedHand;
            FinalHand      = potential.FinalHand;
            CurrentHand    = potential.CurrentHand;
            CurrentFPS     = potential.CurrentFPS;
            StabilizedHand = potential.StabilizedHand;

            potential.FinalHand                = potential.CurrentHand;
            potential.DetectedHand             = Hand.Invalid;
            potential.StabilizedHand           = Hand.Invalid;
            potential.CurrentHand              = Hand.Invalid;
            potential._Stabilized.CurrentValue = false;
            potential.Id = 0;
        }