Ejemplo n.º 1
0
 void Update()
 {
     // hands
     if (LeftHand)
     {
         if (LeftHand.GetIsTracked() && LeftHand.GetTrigger())
         {
             LeftHand.Vibrate();
         }
         LeftHand.transform.localPosition = LeftHand.GetPosition();
         LeftHand.transform.localRotation = LeftHand.GetRotation();
     }
     if (RightHand)
     {
         if (RightHand.GetIsTracked() && RightHand.GetTrigger())
         {
             RightHand.Vibrate();
         }
         RightHand.transform.localPosition = RightHand.GetPosition();
         RightHand.transform.localRotation = RightHand.GetRotation();
     }
 }