예제 #1
0
        private void Awake()
        {
            if (Settings.UpdateType != FinchUpdateType.HmdTransform)
            {
                UnityEngine.XR.InputTracking.disablePositionalTracking = true;
            }

            Application.targetFrameRate = 9000;

            FinchCore.Hmd    = Hmd ?? Camera.main.transform;
            FinchCore.Origin = Root;
            FinchCore.Init(Settings);
        }
예제 #2
0
        public FinchProvider(FinchControllerType deviceType)
        {
            FinchInitError err = FinchCore.Init(deviceType);

            if (err != FinchInitError.None)
            {
                errorDetails = "Error creating/initializing Dash controller API: " + err;
                Debug.LogError(errorDetails);
                return;
            }
            FinchCore.LoadCalibrations();
            InitializeWatches();
            calibrationButtonState = new bool[(int)FinchChirality.Last];
        }
예제 #3
0
 public void ChangeDevice(FinchControllerType deviceType)
 {
     FinchCore.Init(deviceType);
 }