Example #1
0
    // Use this for initialization
    void Start()
    {
        Cursor.lockState = CursorLockMode.Locked;

        state = Test_3FStates.PREPARATION;
        Node root = new Node();

        BuildTree(root);
        InstTree(root);

        VRController          = RigidbodyFirstPersonController.GetInstance().transform;
        VRController.position = new Vector3(-0.04f, -1.04f, -1.88f);

        // It would be better to have an input scheme but this is effective until we get a controller
        controlCam.transform.parent.GetComponent <Pivot_rotate>().active     = true;
        VRController.GetComponent <RigidbodyFirstPersonController>().enabled = false;
    }
Example #2
0
    // Use this for initialization
    void Start()
    {
        Cursor.lockState = CursorLockMode.Locked;

        state = Test_3FStates.PREPARATION;
        Node root = new Node();

        BuildTree(root);
        InstTree(root);

        VRController          = RigidbodyFirstPersonController.GetInstance().transform;
        leftEye               = VRController.Find("Fove Interface").Find("FOVE Eye (Left)").GetComponent <applyShader>();
        rightEye              = VRController.Find("Fove Interface").Find("FOVE Eye (Right)").GetComponent <applyShader>();
        VRController.position = new Vector3(-0.894f, -1.102f, -0.711f);

        // I can maybe add a second FOVE interface with a "Please Wait" screen
        leftEye.SetBlackening(true);
        rightEye.SetBlackening(true);

        // It would be better to have an input scheme but this is effective until we get a controller
        controlCam.transform.parent.GetComponent <Pivot_rotate>().active     = true;
        VRController.GetComponent <RigidbodyFirstPersonController>().enabled = false;
    }