From 94454055973070af7c097c905e9dd38872f2e300 Mon Sep 17 00:00:00 2001 From: Petr Bartos Date: Thu, 20 Oct 2022 08:53:49 +0200 Subject: [PATCH] Fix virtual gun stock height adjustment --- android/app/src/main/cpp/code/vr/vr_input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/app/src/main/cpp/code/vr/vr_input.c b/android/app/src/main/cpp/code/vr/vr_input.c index eb946ba7..b3461147 100644 --- a/android/app/src/main/cpp/code/vr/vr_input.c +++ b/android/app/src/main/cpp/code/vr/vr_input.c @@ -551,7 +551,7 @@ static void IN_VRController( qboolean isRightController, ovrTracking remoteTrack vec2_t xy; rotateAboutOrigin(Cvar_VariableValue("cg_stereoSeparation") / 2.0f, 0.0f, -vr.hmdorientation[YAW], xy); float x = vr.offhandposition[0] - (vr.hmdposition[0] + xy[0]); - float y = vr.offhandposition[1] - (vr.hmdposition[1] - 0.1f) + vr_heightAdjust->value; // Use a point lower + float y = vr.offhandposition[1] - (vr.hmdposition[1] - 0.1f); // Use a point lower float z = vr.offhandposition[2] - (vr.hmdposition[2] + xy[1]); float zxDist = length(x, z);