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