// Start is called before the first frame update
    void Start()
    {
        rightHandDorsalDevice = new DorsalDevice(DorsalDevice.DeviceType.RightHand);
        leftHandDorsalDevice  = new DorsalDevice(DorsalDevice.DeviceType.LeftHand);
        hmdDorsalDevice       = new DorsalDevice(DorsalDevice.DeviceType.HMD);

        leftHandDorsalDevice.SetRelativeRotation(controllerRelativeRotation);
        rightHandDorsalDevice.SetRelativeRotation(controllerRelativeRotation);

        devicesAreReady = true;
    }
Exemple #2
0
    public void ConnectToChosenDevice()
    {
        switch (deviceType)
        {
        case DorsalDevice.DeviceType.Undefined:
            break;

        case DorsalDevice.DeviceType.HMD:
            dorsalDevice = dorsalDeviceManager.hmdDorsalDevice;
            break;

        case DorsalDevice.DeviceType.LeftHand:
            dorsalDevice = dorsalDeviceManager.leftHandDorsalDevice;
            break;

        case DorsalDevice.DeviceType.RightHand:
            dorsalDevice = dorsalDeviceManager.rightHandDorsalDevice;
            break;

        default:
            break;
        }
    }