mirror of
https://github.com/DrBeef/JKXR.git
synced 2024-11-25 05:21:00 +00:00
Don't send roll to the server, this might be causing gradual roll drift
This commit is contained in:
parent
1b22652e5c
commit
2a1cd0e6e7
1 changed files with 2 additions and 2 deletions
|
@ -222,7 +222,7 @@ void VR_GetMove(float *forward, float *side, float *pos_forward, float *pos_side
|
||||||
*pos_side = 0.0f;
|
*pos_side = 0.0f;
|
||||||
*yaw = vr.snapTurn;
|
*yaw = vr.snapTurn;
|
||||||
*pitch = vr.weaponangles[ANGLES_ADJUSTED][PITCH];
|
*pitch = vr.weaponangles[ANGLES_ADJUSTED][PITCH];
|
||||||
*roll = vr.hmdorientation[ROLL];
|
*roll = 0.0f;//vr.hmdorientation[ROLL];
|
||||||
}
|
}
|
||||||
else if (vr.remote_npc) {
|
else if (vr.remote_npc) {
|
||||||
*forward = remote_movementForward;
|
*forward = remote_movementForward;
|
||||||
|
@ -243,7 +243,7 @@ void VR_GetMove(float *forward, float *side, float *pos_forward, float *pos_side
|
||||||
*pos_side = positional_movementSideways;
|
*pos_side = positional_movementSideways;
|
||||||
*yaw = vr.hmdorientation[YAW] + vr.snapTurn;
|
*yaw = vr.hmdorientation[YAW] + vr.snapTurn;
|
||||||
*pitch = vr.hmdorientation[PITCH];
|
*pitch = vr.hmdorientation[PITCH];
|
||||||
*roll = vr.hmdorientation[ROLL];
|
*roll = 0.0f;//vr.hmdorientation[ROLL];
|
||||||
} else {
|
} else {
|
||||||
//in third person just send the bare minimum
|
//in third person just send the bare minimum
|
||||||
*forward = remote_movementForward;
|
*forward = remote_movementForward;
|
||||||
|
|
Loading…
Reference in a new issue