-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adjust scale and position of keyboard with the controller grips, re: #9
- Loading branch information
John Luxford
committed
Sep 3, 2017
1 parent
624cdaf
commit cd43976
Showing
18 changed files
with
688 additions
and
1,339 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
Assets/VRKeys/Scripts/SizeKey.cs.meta → Assets/VRKeys/Scripts/Controller.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/** | ||
* Copyright (c) 2017 The Campfire Union Inc - All Rights Reserved. | ||
* | ||
* Licensed under the MIT license. See LICENSE file in the project root for | ||
* full license information. | ||
* | ||
* Email: [email protected] | ||
* Website: https://www.campfireunion.com | ||
*/ | ||
|
||
using UnityEngine; | ||
using System.Collections; | ||
|
||
namespace VRKeys { | ||
public class HandCollider : MonoBehaviour { | ||
public Mallet mallet; | ||
|
||
public bool inKeyboard = false; | ||
|
||
void OnTriggerEnter (Collider other) { | ||
if (other.gameObject.name == "KeyboardCollider") { | ||
inKeyboard = true; | ||
} | ||
} | ||
|
||
void OnTriggerExit (Collider other) { | ||
if (other.gameObject.name == "KeyboardCollider") { | ||
inKeyboard = false; | ||
} | ||
} | ||
} | ||
} |
6 changes: 3 additions & 3 deletions
6
Assets/VRKeys/Scripts/Haptics.cs.meta → Assets/VRKeys/Scripts/HandCollider.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.