public HandProxy(HandPool parent, IHandModel handModel, Leap.Hand hand) : base(hand.Id) { this.parent = parent; this.handModel = handModel; // Check to see if the hand model has been initialized yet if (handModel.GetLeapHand() == null) { handModel.SetLeapHand(hand); handModel.InitHand(); } else { handModel.SetLeapHand(hand); } handModel.BeginHand(); }
public HandProxy(HandPool parent, IHandModel handModel, Leap.Hand hand) : base(hand.Id) { this.parent = parent; this.handModel = handModel; // Check to see if the hand model has been initialized yet if (handModel.GetLeapHand() == null) { handModel.SetLeapHand(hand); handModel.InitHand(); } else { handModel.SetLeapHand(hand); } handFinishBehavior = handModel.GetComponent<HandTransitionBehavior>(); if (handFinishBehavior) { handFinishBehavior.Reset(); } }
public HandProxy(HandPool parent, IHandModel handModel, Leap.Hand hand) : base(hand.Id) { this.parent = parent; this.handModel = handModel; // Check to see if the hand model has been initialized yet if (handModel.GetLeapHand() == null) { handModel.SetLeapHand(hand); handModel.InitHand(); } else { handModel.SetLeapHand(hand); } handFinishBehavior = handModel.GetComponent <HandTransitionBehavior>(); if (handFinishBehavior) { handFinishBehavior.Reset(); } }
public override void UpdateRepresentation(Leap.Hand hand, ModelType modelType) { handModel.SetLeapHand(hand); handModel.UpdateHand(); }