Beispiel #1
0
 //Constructors:
 public ManagedHand(MLHand hand, HandInput handInput)
 {
     _handInput = handInput;
     Hand       = hand;
     Skeleton   = new ManagedHandSkeleton(this);
     Gesture    = new ManagedHandGesture(this);
     Collider   = new ManagedHandCollider(this);
 }
Beispiel #2
0
 //Constructors:
 public ManagedHand(MLHandTracking.Hand hand, HandInput handInput)
 {
     _handInput = handInput;
     Hand       = hand;
     Skeleton   = new ManagedHandSkeleton(this);
     Gesture    = new ManagedHandGesture(this);
     Collider   = new ManagedHandCollider(this);
     if (handInput != null)
     {
         Collider = new ManagedHandCollider(this);
     }
 }
        //Constructors:
        public ManagedHand(MLHandTracking.Hand hand, HandInput handInput)
        {
            _handInput = handInput;
            Hand       = hand;
            Skeleton   = new ManagedHandSkeleton(this);
            Gesture    = new ManagedHandGesture(this);

            // Modified here by prnvcher to not explode if using null hand input
            if (handInput != null)
            {
                Collider = new ManagedHandCollider(this);
            }
        }