Improve transition to scope so it more matches where the player is pointing

This commit is contained in:
Simon 2023-03-22 22:12:48 +00:00
parent c950cb69cb
commit e51b7b0c0f

View file

@ -464,7 +464,7 @@ void HandleInput_Default( ovrInputStateTrackedRemote *pDominantTrackedRemoteNew,
}
float x = offhandPositionAverage[0] - (vr.hmdposition[0] + xy[0]);
float y = offhandPositionAverage[1] - (vr.hmdposition[1]);
float y = (offhandPositionAverage[1] + 0.12f) - (vr.hmdposition[1]);
float z = offhandPositionAverage[2] - (vr.hmdposition[2] + xy[1]);
float zxDist = length(x, z);