예제 #1
0
 public void BeginInteraction(Vive_Controller wand)
 {
     Debug.Log("Beginiing interaction");
     TurnKinematicOff();
     attached_viveController = wand;
     if (defaultInteractionPoint)
     {
         interactionPoint.position = wand.transform.position;
         interactionPoint.rotation = wand.transform.rotation;
     }
     interactionPoint.SetParent(transform, true);
     currentlyInteracting = true;
 }
예제 #2
0
 public void EndInteraction(Vive_Controller wand)
 {
     Debug.Log("Ending interaction");
     if (turnOnKinematicOnDrop)
     {
         TurnKinematicOn();
     }
     if (wand == attached_viveController)
     {
         attached_viveController = null;
         currentlyInteracting    = false;
     }
 }