Skip to content

Commit 2f35b9d

Browse files
Made the slow-down hotkey tilt the camera 90 degrees instead, to tilt vertically in games that don't allow vertical ARs.
1 parent b82cc62 commit 2f35b9d

File tree

1 file changed

+19
-5
lines changed

1 file changed

+19
-5
lines changed

src/UI/Panels/FreeCamPanel.cs

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1002,11 +1002,25 @@ internal void ProcessInput(Transform transform){
10021002
if (IInputManager.GetKey(ConfigManager.Down.Value))
10031003
transform.position += transform.up * -1 * moveSpeed;
10041004

1005-
if (IInputManager.GetKey(ConfigManager.Tilt_Left.Value))
1006-
transform.Rotate(0, 0, moveSpeed * 10, Space.Self);
1007-
1008-
if (IInputManager.GetKey(ConfigManager.Tilt_Right.Value))
1009-
transform.Rotate(0, 0, - moveSpeed * 10, Space.Self);
1005+
// 90 degrees tilt when pressing the speed down hotkey
1006+
if (IInputManager.GetKey(ConfigManager.Speed_Down_Movement.Value))
1007+
{
1008+
if (IInputManager.GetKeyDown(ConfigManager.Tilt_Left.Value)) {
1009+
transform.Rotate(0, 0, 90, Space.Self);
1010+
}
1011+
else if (IInputManager.GetKeyDown(ConfigManager.Tilt_Right.Value)) {
1012+
transform.Rotate(0, 0, - 90, Space.Self);
1013+
}
1014+
}
1015+
else
1016+
{
1017+
if (IInputManager.GetKey(ConfigManager.Tilt_Left.Value)) {
1018+
transform.Rotate(0, 0, moveSpeed * 10, Space.Self);
1019+
}
1020+
else if (IInputManager.GetKey(ConfigManager.Tilt_Right.Value)) {
1021+
transform.Rotate(0, 0, - moveSpeed * 10, Space.Self);
1022+
}
1023+
}
10101024

10111025
if (IInputManager.GetKey(ConfigManager.Tilt_Reset.Value)){
10121026
// Extract the forward direction of the original quaternion

0 commit comments

Comments
 (0)