Skip to content

Commit 246b45d

Browse files
authored
Merge pull request #17 from Janooba/0.4.0-beta.4
fix for weird issue when default pos was at extent in nonvr
2 parents 8103e6f + 0398655 commit 246b45d

File tree

7 files changed

+366
-92
lines changed

7 files changed

+366
-92
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
- Fixed lever collision detection when min max rotations are swapped
99
- Added mesh gizmo for lever min and max position to help visualize extents
1010
- Min and max angles are now applied to whatever rotation the button starts in
11+
- Fixed non vr grabbing flipping to opposite side at extents when original rotation was near min or max
1112

1213
## v0.3.3
1314
- Fixed edge case where disabling a button in certain states would freeze it when re-enabled

Packages/com.janooba.immersive-interactions/Editor/Button Assets/Scripts/Flippable_Switch_Editor.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,11 @@ public override void OnInspectorGUI()
209209

210210
EditorGUILayout.PropertyField(minMaxRotation);
211211

212+
if (Mathf.Abs(minMaxRotation.vector2Value.y - minMaxRotation.vector2Value.x) >= 180)
213+
{
214+
EditorGUILayout.HelpBox("The difference between the min and max rotation is greater than or equal to 180 degrees. This may cause unexpected behavior.", MessageType.Warning);
215+
}
216+
212217
EditorGUILayout.PropertyField(rotationAxis);
213218
EditorGUILayout.PropertyField(outerAxis);
214219

Packages/com.janooba.immersive-interactions/Editor/Button Assets/Scripts/Shared_Editor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace JanoobaAssets
77
{
88
public static class Shared_EditorUtility
99
{
10-
public const string VERSION = "v0.4.0-beta.3";
10+
public const string VERSION = "v0.4.0-beta.4";
1111

1212
private static GUIStyle _boldHeader = null;
1313
public static GUIStyle BoldHeader

0 commit comments

Comments
 (0)