full body and animation, removed haptics that caused system crash
This commit is contained in:
2265
Assets/Project Files/Robot Kyle.prefab
Normal file
2265
Assets/Project Files/Robot Kyle.prefab
Normal file
File diff suppressed because it is too large
Load Diff
7
Assets/Project Files/Robot Kyle.prefab.meta
Normal file
7
Assets/Project Files/Robot Kyle.prefab.meta
Normal file
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f950195469996c74ba499ffd00cc239e
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -9,7 +9,7 @@ using UnityEngine.Events;
|
||||
|
||||
public class GestureRecognizer : MonoBehaviour
|
||||
{
|
||||
public InputDevice rightHandController;
|
||||
//public InputDevice rightHandController;
|
||||
public XRNode rightHandSource;
|
||||
public InputHelpers.Button rightInputButton;
|
||||
public InputHelpers.Button rightControlButton;
|
||||
@@ -60,13 +60,13 @@ public class GestureRecognizer : MonoBehaviour
|
||||
if (!isMoving && startGesture)
|
||||
{
|
||||
StartMovement();
|
||||
StartCoroutine("Haptics");
|
||||
//StartCoroutine("Haptics");
|
||||
}
|
||||
// Ending the movement
|
||||
else if (isMoving && !startGesture)
|
||||
{
|
||||
EndMovement();
|
||||
StopCoroutine("Haptics");
|
||||
//StopCoroutine("Haptics");
|
||||
}
|
||||
// Updating the movement
|
||||
else if (isMoving && startGesture)
|
||||
@@ -75,13 +75,13 @@ public class GestureRecognizer : MonoBehaviour
|
||||
}
|
||||
}
|
||||
// Still needs to be tested
|
||||
IEnumerator Haptics()
|
||||
{
|
||||
while (true)
|
||||
{
|
||||
rightHandController.SendHapticImpulse(0u, 0.7f, 0.2f);
|
||||
}
|
||||
}
|
||||
//IEnumerator Haptics()
|
||||
//{
|
||||
// while (true)
|
||||
// {
|
||||
// rightHandController.SendHapticImpulse(0u, 0.7f, 0.2f);
|
||||
// }
|
||||
//}
|
||||
|
||||
void StartMovement()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user