// Use this for initialization void Start() { m_it = new vrInteractionNavigationWandJoystick(Name); GC.SuppressFinalize(m_it); MiddleVR.VRInteractionMgr.AddInteraction(m_it); MiddleVR.VRInteractionMgr.Activate(m_it); m_DirectionReferenceNode = MiddleVR.VRDisplayMgr.GetNode(DirectionReferenceNode); m_NavigationNode = MiddleVR.VRDisplayMgr.GetNode(NavigationNode); m_TurnAroundNode = MiddleVR.VRDisplayMgr.GetNode(TurnAroundNode); if (m_DirectionReferenceNode != null && m_NavigationNode != null && m_TurnAroundNode != null) { m_it.SetDirectionReferenceNode(m_DirectionReferenceNode); m_it.SetNavigationNode(m_NavigationNode); m_it.SetTurnAroundNode(m_TurnAroundNode); m_it.SetTranslationSpeed(TranslationSpeed); m_it.SetFly(Fly); } else { MiddleVR.VRLog(2, "[X] VRInteractionNavigationWandJoystick: One or several nodes are missing."); } }
protected void Start() { // Make sure the base interaction is started InitializeBaseInteraction(); m_it = new vrInteractionNavigationWandJoystick(Name); // Must tell base class about our interaction SetInteraction(m_it); MiddleVR.VRInteractionMgr.AddInteraction(m_it); MiddleVR.VRInteractionMgr.Activate(m_it); m_DirectionReferenceNode = MiddleVR.VRDisplayMgr.GetNode(DirectionReferenceNode); m_TurnAroundNode = MiddleVR.VRDisplayMgr.GetNode(TurnAroundNode); if (m_DirectionReferenceNode != null && m_TurnAroundNode != null) { m_it.SetDirectionReferenceNode(m_DirectionReferenceNode); m_it.SetTurnAroundNode(m_TurnAroundNode); m_it.SetTranslationSpeed(TranslationSpeed); m_it.SetRotationSpeed(RotationSpeed); m_it.SetFly(Fly); } else { MiddleVR.VRLog(2, "[X] VRInteractionNavigationWandJoystick: One or several nodes are missing."); } }
protected void Start() { // Make sure the base interaction is started InitializeBaseInteraction(); m_it = new vrInteractionNavigationWandJoystick(Name); // Must tell base class about our interaction SetInteraction(m_it); MiddleVR.VRInteractionMgr.AddInteraction(m_it); MiddleVR.VRInteractionMgr.Activate(m_it); m_DirectionReferenceNode = MiddleVR.VRDisplayMgr.GetNode(DirectionReferenceNode); m_TurnAroundNode = MiddleVR.VRDisplayMgr.GetNode(TurnAroundNode); if( m_DirectionReferenceNode!= null && m_TurnAroundNode != null ) { m_it.SetDirectionReferenceNode(m_DirectionReferenceNode); m_it.SetTurnAroundNode(m_TurnAroundNode); m_it.SetTranslationSpeed(TranslationSpeed); m_it.SetRotationSpeed(RotationSpeed); m_it.SetFly(Fly); } else { MiddleVR.VRLog( 2, "[X] VRInteractionNavigationWandJoystick: One or several nodes are missing." ); } }
// Use this for initialization void Start() { m_it = new vrInteractionNavigationWandJoystick(Name); GC.SuppressFinalize(m_it); MiddleVR.VRInteractionMgr.AddInteraction(m_it); MiddleVR.VRInteractionMgr.Activate(m_it); m_DirectionReferenceNode = MiddleVR.VRDisplayMgr.GetNode(DirectionReferenceNode); m_NavigationNode = MiddleVR.VRDisplayMgr.GetNode(NavigationNode); m_TurnAroundNode = MiddleVR.VRDisplayMgr.GetNode(TurnAroundNode); if ( m_DirectionReferenceNode!= null && m_NavigationNode != null && m_TurnAroundNode != null ) { m_it.SetDirectionReferenceNode(m_DirectionReferenceNode); m_it.SetNavigationNode(m_NavigationNode); m_it.SetTurnAroundNode(m_TurnAroundNode); m_it.SetTranslationSpeed(TranslationSpeed); m_it.SetFly(Fly); } else { MiddleVR.VRLog( 2, "[X] VRInteractionNavigationWandJoystick: One or several nodes are missing." ); } }