mirror of
https://github.com/DrBeef/JKXR.git
synced 2024-11-22 04:01:33 +00:00
Improve transition to scope so it more matches where the player is pointing
This commit is contained in:
parent
c950cb69cb
commit
e51b7b0c0f
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue