Corrected controller orientation
This commit is contained in:
parent
efefc4b9fd
commit
64af1d26da
@ -200,8 +200,8 @@ namespace Passer.Tracking {
|
|||||||
|
|
||||||
Quaternion rotation;
|
Quaternion rotation;
|
||||||
if (isTracked && device.TryGetFeatureValue(CommonUsages.deviceRotation, out rotation)) {
|
if (isTracked && device.TryGetFeatureValue(CommonUsages.deviceRotation, out rotation)) {
|
||||||
if (loadedDevice == LoadedDeviceType.OpenXR)
|
//if (loadedDevice == LoadedDeviceType.OpenXR)
|
||||||
rotation *= Quaternion.AngleAxis(45, Vector3.right);
|
// rotation *= Quaternion.AngleAxis(45, Vector3.right);
|
||||||
transform.rotation = trackerTransform.rotation * rotation;
|
transform.rotation = trackerTransform.rotation * rotation;
|
||||||
rotationConfidence = 1;
|
rotationConfidence = 1;
|
||||||
status = Tracker.Status.Tracking;
|
status = Tracker.Status.Tracking;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user