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>();
    }
    private void Start()
    {
        // Make sure the base interaction is started
        InitializeBaseInteraction();

        m_VRMgr = GameObject.Find("VRManager").GetComponent <VRManagerScript>();

        m_it = new vrInteractionManipulationHomer(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.SetTranslationScale(TranslationScale);
            m_it.SetRotationScale(RotationScale);
            m_it.SetManipulatorNode(m_HandNode);
        }
        else
        {
            MiddleVR.VRLog(2, "[X] VRInteractionManipulationHomer: 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>();
    }
    private void Start()
    {
        // Make sure the base interaction is started
        InitializeBaseInteraction();

        m_VRMgr = GameObject.Find("VRManager").GetComponent<VRManagerScript>();

        m_it = new vrInteractionManipulationHomer(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.SetTranslationScale( TranslationScale );
            m_it.SetRotationScale( RotationScale );
            m_it.SetManipulatorNode(m_HandNode);
        }
        else
        {
            MiddleVR.VRLog( 2, "[X] VRInteractionManipulationHomer: One or several nodes are missing." );
        }

        m_Wand = this.GetComponent<VRWand>();
    }
Esempio n. 5
0
    protected void Start()
    {
        // Make sure the base interaction is started and create interaction
        InitializeBaseInteraction();
        CreateInteraction("VRRaySelection");
        base.GetInteraction().AddTag("ContinuousSelection");
        base.Activate();

        m_SelectionMgr = this.GetComponent<VRSelectionManager>();
        if (m_SelectionMgr == null)
        {
            MVRTools.Log(1, "[X] VRRaySelection: impossible to retrieve VRSelectionManager.");
        }

        m_Wand = this.GetComponent<VRWand>();
        if (m_Wand == null)
        {
            MVRTools.Log(1, "[X] VRRaySelection: impossible to retrieve VRWand.");
        }
    }
Esempio n. 6
0
    private void Start()
    {
        // Make sure the base interaction is started and create interaction
        InitializeBaseInteraction();
        CreateInteraction("VRRaySelection");
        base.GetInteraction().AddTag("ContinuousSelection");
        base.Activate();

        m_SelectionMgr = this.GetComponent <VRSelectionManager>();
        if (m_SelectionMgr == null)
        {
            MVRTools.Log(1, "[X] VRRaySelection: impossible to retrieve VRSelectionManager.");
        }

        m_Wand = this.GetComponent <VRWand>();
        if (m_Wand == null)
        {
            MVRTools.Log(1, "[X] VRRaySelection: impossible to retrieve VRWand.");
        }
    }