Skip to content

Commit 0df5dc2

Browse files
committed
changed snapturn name
1 parent 48028f5 commit 0df5dc2

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

Basis/Packages/com.basis.framework/BasisUI/BasisSettingsDefaults.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ public static class BasisSettingsDefaults
6060
public static BasisSettingsBinding<bool> InvertMouse =>
6161
new("invertmouse", new BasisPlatformDefault<bool>(false));
6262

63-
public static BasisSettingsBinding<bool> smoothlocomotion =>
64-
new("smoothlocomotion", new BasisPlatformDefault<bool>(true));
63+
public static BasisSettingsBinding<bool> usesnapturn =>
64+
new("usesnapturn", new BasisPlatformDefault<bool>(false));
6565

6666
public static BasisSettingsBinding<string> QualityLevel =>
6767
new("Quality Level", new BasisPlatformDefault<string>

Basis/Packages/com.basis.framework/BasisUI/Menus/Main Menu Providers/SettingsProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ public static PanelTabPage GeneralTab(PanelTabGroup tabGroup)
130130

131131
PanelToggle smoothlocomotion = PanelToggle.CreateNewEntry(generalGroup);
132132
smoothlocomotion.Descriptor.SetTitle("Use SnapTurn locomotion");
133-
smoothlocomotion.AssignBinding(BasisSettingsDefaults.smoothlocomotion);
133+
smoothlocomotion.AssignBinding(BasisSettingsDefaults.usesnapturn);
134134

135135

136136

Basis/Packages/com.basis.framework/Drivers/Local/BasisLocalCharacterDriver.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ public void SimulateMovement(float DeltaTime)
140140

141141
// Calculate the rotation amount for this frame
142142
float rotationAmount;
143-
if (SMModuleControllerSettings.Hassmoothlocomotion == false && BasisDeviceManagement.IsCurrentModeVR())
143+
if (SMModuleControllerSettings.UsingSnapTurnAngle && BasisDeviceManagement.IsCurrentModeVR())
144144
{
145145
var isAboveThreshold = math.abs(Rotation.x) > SnapTurnAbsoluteThreshold;
146146
if (isAboveThreshold != isSnapTurning)

Basis/Packages/com.basis.framework/Settings/SMModuleControllerSettings.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public class SMModuleControllerSettings : BasisSettingsBase
1010
public static float wingExponent = 1.6f;
1111

1212
public static float MouseSensitivty = 1;
13-
public static bool Hassmoothlocomotion = true;
13+
public static bool UsingSnapTurnAngle = false;
1414
public override void ValidSettingsChange(string matchedSettingName, string optionValue)
1515
{
1616
switch (matchedSettingName)
@@ -64,16 +64,16 @@ public override void ValidSettingsChange(string matchedSettingName, string optio
6464
}
6565
}
6666
break;
67-
case "smoothlocomotion":
67+
case "usesnapturn":
6868
if (optionValue == "true")
6969
{
70-
Hassmoothlocomotion = true;
70+
UsingSnapTurnAngle = true;
7171
}
7272
else
7373
{
7474
if (optionValue == "false")
7575
{
76-
Hassmoothlocomotion = false;
76+
UsingSnapTurnAngle = false;
7777
}
7878
}
7979
break;

Basis/Packages/com.basis.sdk/Prefabs/Boot/BasisFramework.prefab

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ MonoBehaviour:
335335
- extraxdeadzoneatfully
336336
- ydeadzone
337337
- wingexponent
338-
- smoothlocomotion
338+
- usesnapturn
339339
- mousesensitivty
340340
AlwaysRunEverySettingsName: 0
341341
Length: 0

0 commit comments

Comments
 (0)