Skip to content

Commit 6af3511

Browse files
fix roll not working with different timescales
1 parent 7229d24 commit 6af3511

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

FreecamRoll/FreecamRoll/FreecamControllerPatches.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ internal static void FreecamControllerUpdatePostfix(FreecamController __instance
2222
if (Input.GetKey(KeyCode.Q)) rollDelta = 1;
2323
else if (Input.GetKey(KeyCode.E)) rollDelta = -1;
2424
rollDelta *= Main.sensitivity;
25-
rollDelta *= Time.deltaTime;
25+
rollDelta *= Time.unscaledDeltaTime;
2626
__instance.tr.localEulerAngles += new Vector3(0, 0, rollDelta);
2727
}
2828
}

0 commit comments

Comments
 (0)