Corrected controller orientation
This commit is contained in:
parent
efefc4b9fd
commit
64af1d26da
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user