Corrected controller orientation

This commit is contained in:
Pascal Serrarens 2023-08-07 17:13:06 +02:00
parent efefc4b9fd
commit 64af1d26da

View File

@ -200,8 +200,8 @@ namespace Passer.Tracking {
Quaternion rotation;
if (isTracked && device.TryGetFeatureValue(CommonUsages.deviceRotation, out rotation)) {
if (loadedDevice == LoadedDeviceType.OpenXR)
rotation *= Quaternion.AngleAxis(45, Vector3.right);
//if (loadedDevice == LoadedDeviceType.OpenXR)
// rotation *= Quaternion.AngleAxis(45, Vector3.right);
transform.rotation = trackerTransform.rotation * rotation;
rotationConfidence = 1;
status = Tracker.Status.Tracking;