mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-10 06:41:58 +00:00
Fix virtual gun stock height adjustment
This commit is contained in:
parent
61faf0a731
commit
b904ee0d4f
1 changed files with 1 additions and 1 deletions
|
@ -895,7 +895,7 @@ static void IN_VRController( qboolean isRightController, XrPosef pose )
|
|||
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);
|
||||
|
|
Loading…
Reference in a new issue