protected void Start() { // Make sure the base interaction is started InitializeBaseInteraction(); m_it = new vrInteractionManipulationRay(Name); // Must tell base class about our interaction SetInteraction(m_it); MiddleVR.VRInteractionMgr.AddInteraction(m_it); MiddleVR.VRInteractionMgr.Activate(m_it); m_HandNode = MiddleVR.VRDisplayMgr.GetNode(HandNode); if (m_HandNode != null) { m_it.SetGrabWandButton(WandGrabButton); m_it.SetManipulatorNode(m_HandNode); } else { MiddleVR.VRLog(2, "[X] VRInteractionManipulationRay: One or several nodes are missing."); } m_Wand = this.GetComponent <VRWand>(); }
protected void Start() { // Make sure the base interaction is started InitializeBaseInteraction(); m_it = new vrInteractionManipulationRay(Name); // Must tell base class about our interaction SetInteraction(m_it); MiddleVR.VRInteractionMgr.AddInteraction(m_it); MiddleVR.VRInteractionMgr.Activate(m_it); m_HandNode = MiddleVR.VRDisplayMgr.GetNode(HandNode); if (m_HandNode != null) { m_it.SetGrabWandButton(WandGrabButton); m_it.SetManipulatorNode(m_HandNode); } else { MiddleVR.VRLog(2, "[X] VRInteractionManipulationRay: One or several nodes are missing."); } m_Wand = this.GetComponent<VRWand>(); }