1
0
mirror of https://github.com/originalnicodr/CinematicUnityExplorer.git synced 2025-07-18 17:38:01 +08:00

Made the slow-down hotkey tilt the camera 90 degrees instead, to tilt vertically in games that don't allow vertical ARs.
Some checks are pending
Build CinematicUnityExplorer / build_dotnet (push) Waiting to run
Build CinematicUnityExplorer / build_connector (push) Waiting to run

This commit is contained in:
originalnicodr
2025-03-01 10:58:05 -03:00
parent b82cc62186
commit 2f35b9d2c7

View File

@ -1002,11 +1002,25 @@ namespace UnityExplorer.UI.Panels
if (IInputManager.GetKey(ConfigManager.Down.Value))
transform.position += transform.up * -1 * moveSpeed;
if (IInputManager.GetKey(ConfigManager.Tilt_Left.Value))
// 90 degrees tilt when pressing the speed down hotkey
if (IInputManager.GetKey(ConfigManager.Speed_Down_Movement.Value))
{
if (IInputManager.GetKeyDown(ConfigManager.Tilt_Left.Value)) {
transform.Rotate(0, 0, 90, Space.Self);
}
else if (IInputManager.GetKeyDown(ConfigManager.Tilt_Right.Value)) {
transform.Rotate(0, 0, - 90, Space.Self);
}
}
else
{
if (IInputManager.GetKey(ConfigManager.Tilt_Left.Value)) {
transform.Rotate(0, 0, moveSpeed * 10, Space.Self);
if (IInputManager.GetKey(ConfigManager.Tilt_Right.Value))
}
else if (IInputManager.GetKey(ConfigManager.Tilt_Right.Value)) {
transform.Rotate(0, 0, - moveSpeed * 10, Space.Self);
}
}
if (IInputManager.GetKey(ConfigManager.Tilt_Reset.Value)){
// Extract the forward direction of the original quaternion