Ejemplo n.º 1
0
    // 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;
    }
Ejemplo n.º 2
0
 public void SetControllerRelativeRotations(Quaternion _relativeRotation)
 {
     controllerRelativeRotation = _relativeRotation;
     if (leftHandDorsalDevice != null)
     {
         leftHandDorsalDevice.SetRelativeRotation(controllerRelativeRotation);
     }
     if (rightHandDorsalDevice != null)
     {
         rightHandDorsalDevice.SetRelativeRotation(controllerRelativeRotation);
     }
 }