Don't send roll to the server, this might be causing gradual roll drift

This commit is contained in:
Simon 2023-03-28 07:20:10 +01:00
parent 1b22652e5c
commit 2a1cd0e6e7

View file

@ -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;