Exemple #1
0
 // Update is called once per frame
 void Update()
 {
     //left.DrawDebugRayFingers();
     //right.DrawDebugRayFingers();
     if (right.hg == HandGesture.Point)
     {
         Ray r = right.GetFingerRay(Finger.IndexFinger, FingerPart.DistalPhalanges);
         Debug.DrawRay(r.origin, r.direction, Color.red);
     }
 }
Exemple #2
0
 // Update is called once per frame
 void Update()
 {
     //left.DrawDebugRayFingers();
     //right.DrawDebugRayFingers();
     if (right.hg == HandGesture.Point)
     {
         Ray r = right.GetFingerRay(Finger.IndexFinger, FingerPart.DistalPhalanges);
         Debug.DrawRay(r.origin, r.direction, Color.red);
         GameObject.Find("fishing_boat").GetComponent <boatMoving>().PointBoatPosition(r);
     }
 }