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