full body and animation, removed haptics that caused system crash

This commit is contained in:
2022-03-24 22:50:55 +02:00
parent 0cb487d781
commit e6cfaaf188
12 changed files with 2472 additions and 1026 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: f950195469996c74ba499ffd00cc239e
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -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()
{