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; }
public void EndInteraction(Vive_Controller wand) { Debug.Log("Ending interaction"); if (turnOnKinematicOnDrop) { TurnKinematicOn(); } if (wand == attached_viveController) { attached_viveController = null; currentlyInteracting = false; } }