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); }
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]; }
public void ChangeDevice(FinchControllerType deviceType) { FinchCore.Init(deviceType); }