From 7c8b925be7c4d08befd1ce332673aa1d07e4df2b Mon Sep 17 00:00:00 2001 From: Desu <19489366+Shii2@users.noreply.github.com> Date: Wed, 29 Sep 2021 14:50:25 +0300 Subject: [PATCH] Fix for wrong Y and Z coordinates of left and right eye Fixes #86 --- Providers/Input/Input.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Providers/Input/Input.cpp b/Providers/Input/Input.cpp index 2817f9d..f9a6421 100644 --- a/Providers/Input/Input.cpp +++ b/Providers/Input/Input.cpp @@ -474,7 +474,7 @@ void OpenVRInputProvider::OpenVRToUnityTracking( const vr::TrackedDevicePose_t & if ( postTransform ) { XRMatrix4x4 &xrTrackingTransformRef = reinterpret_cast< XRMatrix4x4 & >( trackingToReference ); - xrTrackingTransformRef *= reinterpret_cast< XRMatrix4x4 & >( *postTransform ); + xrTrackingTransformRef = reinterpret_cast< XRMatrix4x4 & >( *postTransform ) * xrTrackingTransformRef; } outPosition.x = trackingToReference.columns[3].x;