Skip to content

Commit

Permalink
Fix for wrong Y and Z coordinates of left and right eye
Browse files Browse the repository at this point in the history
  • Loading branch information
Shii2 committed Sep 29, 2021
1 parent 739417c commit 7c8b925
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Providers/Input/Input.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7c8b925

Please sign in to comment.