Replace UltimateXR with HurricaneVR

This commit is contained in:
2024-08-08 17:01:07 +02:00
parent e8658374d6
commit fb21dbbb73
5932 changed files with 358362 additions and 2174150 deletions

View File

@@ -0,0 +1,48 @@
using System.Collections;
using System.Collections.Generic;
using HurricaneVR.Framework.Core;
using HurricaneVR.Framework.Core.Grabbers;
using HurricaneVR.Framework.Core.HandPoser;
using HurricaneVR.Framework.Shared;
using UnityEngine;
namespace HurricaneVR.TechDemo.Scripts
{
public class DemoPoseSqueeze : MonoBehaviour
{
public Transform Target;
public Vector3 ScaleTarget;
public HVRGrabbable Grabbable;
private Vector3 _scale;
void Start()
{
TryGetComponent(out Grabbable);
Grabbable.HandReleased.AddListener(OnReleased);
_scale = Target.localScale;
}
private void OnReleased(HVRHandGrabber arg0, HVRGrabbable arg1)
{
//clear the parameter when no longer holding the object
HVRAnimationParameters.ClearFloatParameter(arg0.HandSide, "Squeeze");
Target.localScale = _scale;
}
void Update()
{
if (Grabbable.HandGrabbers.Count > 0)
{
var hand = Grabbable.HandGrabbers[0];
var value = hand.Controller.ControllerType == HVRControllerType.Knuckles ? hand.Controller.GripForce : hand.Controller.Trigger;
//setting the 'Squeeze' parameter that coincides with the parameter name set on the grabpoint's HVRHandPoser
HVRAnimationParameters.SetFloatParameter(hand.HandSide, "Squeeze", value);
Target.localScale = Vector3.Lerp(_scale, ScaleTarget, value);
}
}
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 8b117ccfa981b65408b3e9c037a2fbd3
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,101 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: dc30735a6f974fda88a33f70e2b17a3b, type: 3}
m_Name: pose_squeeze_closed
m_EditorClassIdentifier:
SnappedLeft: 0
LeftHand:
Position: {x: -0.048911095, y: -0.0069078803, z: -0.0145998}
Rotation: {x: 0.7071069, y: -0.70710665, z: -0.00000021336837, w: 0.00000021336832}
Thumb:
Bones:
- Position: {x: -0.03259473, y: 0.0518627, z: -0.008608547}
Rotation: {x: -0.11840693, y: -0.32803887, z: 0.27921978, w: 0.8946545}
- Position: {x: 0.0000000011204975, y: 0.045742195, z: 3.4924597e-10}
Rotation: {x: -0.1861672, y: -0.20890246, z: 0.032101177, w: 0.95951605}
- Position: {x: 0.0000000044237822, y: 0.027400132, z: 4.656613e-10}
Rotation: {x: -0.48288417, y: -0.09330511, z: 0.023746923, w: 0.8703753}
Index:
Bones:
- Position: {x: -0.031258326, y: 0.12521929, z: -0.003754848}
Rotation: {x: -0.2983336, y: -0.012589442, z: 0.084199674, w: 0.9506571}
- Position: {x: 0.0000000015825208, y: 0.043675978, z: -5.2750693e-11}
Rotation: {x: -0.48437488, y: 0.0018888768, z: -0.021420643, w: 0.87459624}
- Position: {x: -0.0000000032305252, y: 0.027745081, z: 2.910383e-11}
Rotation: {x: -0.22198391, y: 0.0010419409, z: -0.0031123562, w: 0.97504485}
Middle:
Bones:
- Position: {x: -0.006011055, y: 0.12648933, z: -0.002649093}
Rotation: {x: 0.30893186, y: -0.04729907, z: -0.024436047, w: -0.94959295}
- Position: {x: 3.041123e-11, y: 0.043860327, z: 5.854872e-11}
Rotation: {x: -0.4029184, y: -0.045021806, z: -0.00067429803, w: 0.91412765}
- Position: {x: 9.913492e-11, y: 0.029505944, z: 2.323759e-10}
Rotation: {x: -0.17046848, y: -0.0003461508, z: 0.0017666315, w: 0.9853615}
Ring:
Bones:
- Position: {x: 0.019194486, y: 0.11851998, z: -0.0075068665}
Rotation: {x: -0.33802727, y: 0.08017269, z: -0.045653936, w: 0.93660325}
- Position: {x: -0.000000002794195, y: 0.042655714, z: 3.2014214e-10}
Rotation: {x: -0.39584267, y: -0.015448904, z: 0.02672548, w: 0.91779935}
- Position: {x: -0.000000002240995, y: 0.027702337, z: 4.0745363e-10}
Rotation: {x: -0.27017704, y: 0.0077311727, z: -0.02331804, w: 0.96249723}
Pinky:
Bones:
- Position: {x: 0.035965066, y: 0.1098181, z: -0.011605551}
Rotation: {x: -0.6503517, y: 0.13201669, z: -0.056986336, w: 0.74590003}
- Position: {x: -0.0000000013096724, y: 0.032479797, z: 3.4924597e-10}
Rotation: {x: -0.73724246, y: -0.021042883, z: 0.0030723065, w: 0.6752935}
- Position: {x: 0.0000000054133125, y: 0.02165052, z: 6.9849193e-10}
Rotation: {x: -0.5785602, y: 0.014150611, z: -0.009066778, w: 0.8154666}
RightHand:
Position: {x: 0.048911095, y: -0.0069078803, z: -0.0145998}
Rotation: {x: 0.7071069, y: 0.70710665, z: 0.00000021336837, w: 0.00000021336832}
Thumb:
Bones:
- Position: {x: 0.03259473, y: 0.0518627, z: -0.008608547}
Rotation: {x: -0.11840694, y: 0.32803893, z: -0.27921975, w: 0.8946545}
- Position: {x: -0.0000000011204975, y: 0.045742195, z: 3.4924597e-10}
Rotation: {x: -0.1861672, y: 0.20890267, z: -0.032101136, w: 0.959516}
- Position: {x: -0.0000000044237822, y: 0.027400132, z: 4.656613e-10}
Rotation: {x: -0.48288417, y: 0.093305185, z: -0.023746885, w: 0.8703753}
Index:
Bones:
- Position: {x: 0.031258326, y: 0.12521929, z: -0.003754848}
Rotation: {x: -0.2983335, y: 0.012589256, z: -0.084199734, w: 0.9506572}
- Position: {x: -0.0000000015825208, y: 0.043675978, z: -5.2750693e-11}
Rotation: {x: -0.4843749, y: -0.0018888005, z: 0.021420782, w: 0.87459624}
- Position: {x: 0.0000000032305252, y: 0.027745081, z: 2.910383e-11}
Rotation: {x: -0.22198391, y: -0.0010419715, z: 0.0031122211, w: 0.97504485}
Middle:
Bones:
- Position: {x: 0.006011055, y: 0.12648933, z: -0.002649093}
Rotation: {x: 0.30893186, y: 0.047299065, z: 0.024436047, w: -0.94959295}
- Position: {x: -3.041123e-11, y: 0.043860327, z: 5.854872e-11}
Rotation: {x: -0.40291837, y: 0.04502185, z: 0.00067431293, w: 0.9141277}
- Position: {x: -9.913492e-11, y: 0.029505944, z: 2.323759e-10}
Rotation: {x: -0.17046848, y: 0.00034607385, z: -0.0017666449, w: 0.9853615}
Ring:
Bones:
- Position: {x: -0.019194486, y: 0.11851998, z: -0.0075068665}
Rotation: {x: -0.3380273, y: -0.080172636, z: 0.045654107, w: 0.93660325}
- Position: {x: 0.000000002794195, y: 0.042655714, z: 3.2014214e-10}
Rotation: {x: -0.39584267, y: 0.015448881, z: -0.02672549, w: 0.91779935}
- Position: {x: 0.000000002240995, y: 0.027702337, z: 4.0745363e-10}
Rotation: {x: -0.27017704, y: -0.0077311797, z: 0.023318011, w: 0.96249723}
Pinky:
Bones:
- Position: {x: -0.035965066, y: 0.1098181, z: -0.011605551}
Rotation: {x: -0.6503517, y: -0.13201676, z: 0.056986213, w: 0.74590003}
- Position: {x: 0.0000000013096724, y: 0.032479797, z: 3.4924597e-10}
Rotation: {x: -0.73724246, y: 0.021042906, z: -0.0030722618, w: 0.67529356}
- Position: {x: -0.0000000054133125, y: 0.02165052, z: 6.9849193e-10}
Rotation: {x: -0.57856035, y: -0.014150592, z: 0.009066761, w: 0.8154664}

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 0e418524dbf49ba43b8f3b9c971a8b10
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,101 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: dc30735a6f974fda88a33f70e2b17a3b, type: 3}
m_Name: pose_squeeze_open
m_EditorClassIdentifier:
SnappedLeft: 0
LeftHand:
Position: {x: -0.048911095, y: -0.0069078803, z: -0.0145998}
Rotation: {x: 0.7071069, y: -0.70710665, z: -0.00000021336837, w: 0.00000021336832}
Thumb:
Bones:
- Position: {x: -0.03259473, y: 0.0518627, z: -0.008608547}
Rotation: {x: -0.17431653, y: -0.30570322, z: 0.23683222, w: 0.90557706}
- Position: {x: 0.0000000011204975, y: 0.045742195, z: 3.4924597e-10}
Rotation: {x: -0.08565426, y: -0.27893597, z: -0.021634554, w: 0.95623744}
- Position: {x: 0.0000000044237822, y: 0.027400132, z: 4.656613e-10}
Rotation: {x: -0.038837317, y: -0.015545906, z: 0.019641278, w: 0.9989315}
Index:
Bones:
- Position: {x: -0.031258326, y: 0.12521929, z: -0.003754848}
Rotation: {x: -0.04745932, y: -0.006778924, z: 0.046995297, w: 0.997744}
- Position: {x: 0.0000000015825208, y: 0.043675978, z: -5.2750693e-11}
Rotation: {x: -0.37777224, y: 0.00733625, z: -0.011268453, w: 0.925801}
- Position: {x: -0.0000000032305252, y: 0.027745081, z: 2.910383e-11}
Rotation: {x: -0.17134461, y: 0.0008798416, z: -0.0031618949, w: 0.9852057}
Middle:
Bones:
- Position: {x: -0.006011055, y: 0.12648933, z: -0.002649093}
Rotation: {x: 0.16396816, y: -0.0037088715, z: -0.0019634136, w: -0.98645675}
- Position: {x: 3.041123e-11, y: 0.043860327, z: 5.854872e-11}
Rotation: {x: -0.40514454, y: -0.001275041, z: 0.0020463618, w: 0.9142495}
- Position: {x: 9.913492e-11, y: 0.029505944, z: 2.323759e-10}
Rotation: {x: -0.19142903, y: -0.000383717, z: 0.0017590327, w: 0.98150486}
Ring:
Bones:
- Position: {x: 0.019194486, y: 0.11851998, z: -0.0075068665}
Rotation: {x: -0.17333297, y: 0.033389386, z: -0.06415392, w: 0.98220426}
- Position: {x: -0.000000002794195, y: 0.042655714, z: 3.2014214e-10}
Rotation: {x: -0.40618563, y: -0.015749697, z: 0.026549226, w: 0.91326904}
- Position: {x: -0.000000002240995, y: 0.027702337, z: 4.0745363e-10}
Rotation: {x: -0.1515771, y: 0.004849086, z: -0.024082858, w: 0.9881401}
Pinky:
Bones:
- Position: {x: 0.035965066, y: 0.1098181, z: -0.011605551}
Rotation: {x: -0.18821095, y: 0.063944, z: -0.1615406, w: 0.9666398}
- Position: {x: -0.0000000013096724, y: 0.032479797, z: 3.4924597e-10}
Rotation: {x: -0.32946494, y: -0.017077424, z: 0.012672771, w: 0.94392836}
- Position: {x: 0.0000000054133125, y: 0.02165052, z: 6.9849193e-10}
Rotation: {x: -0.17438221, y: 0.008915497, z: -0.014246331, w: 0.9845346}
RightHand:
Position: {x: 0.048911095, y: -0.0069078803, z: -0.0145998}
Rotation: {x: 0.7071069, y: 0.70710665, z: 0.00000021336837, w: 0.00000021336832}
Thumb:
Bones:
- Position: {x: 0.03259473, y: 0.0518627, z: -0.008608547}
Rotation: {x: -0.17431648, y: 0.30570325, z: -0.23683211, w: 0.9055771}
- Position: {x: -0.0000000011204975, y: 0.045742195, z: 3.4924597e-10}
Rotation: {x: -0.085654, y: 0.27893597, z: 0.021634597, w: 0.9562375}
- Position: {x: -0.0000000044237822, y: 0.027400132, z: 4.656613e-10}
Rotation: {x: -0.03883708, y: 0.015545905, z: -0.019641403, w: 0.9989316}
Index:
Bones:
- Position: {x: 0.031258326, y: 0.12521929, z: -0.003754848}
Rotation: {x: -0.047459323, y: 0.0067789177, z: -0.046995446, w: 0.997744}
- Position: {x: -0.0000000015825208, y: 0.043675978, z: -5.2750693e-11}
Rotation: {x: -0.37777224, y: -0.007336195, z: 0.011268475, w: 0.925801}
- Position: {x: 0.0000000032305252, y: 0.027745081, z: 2.910383e-11}
Rotation: {x: -0.17134461, y: -0.00087993237, z: 0.0031618788, w: 0.9852057}
Middle:
Bones:
- Position: {x: 0.006011055, y: 0.12648933, z: -0.002649093}
Rotation: {x: 0.16396816, y: 0.0037089186, z: 0.0019634445, w: -0.98645675}
- Position: {x: -3.041123e-11, y: 0.043860327, z: 5.854872e-11}
Rotation: {x: -0.40514454, y: 0.0012750761, z: -0.0020462822, w: 0.9142495}
- Position: {x: -9.913492e-11, y: 0.029505944, z: 2.323759e-10}
Rotation: {x: -0.19142903, y: 0.00038372647, z: -0.001758985, w: 0.98150486}
Ring:
Bones:
- Position: {x: -0.019194486, y: 0.11851998, z: -0.0075068665}
Rotation: {x: -0.17333296, y: -0.033389185, z: 0.06415395, w: 0.98220426}
- Position: {x: 0.000000002794195, y: 0.042655714, z: 3.2014214e-10}
Rotation: {x: -0.4061854, y: 0.015749639, z: -0.026549391, w: 0.91326916}
- Position: {x: 0.000000002240995, y: 0.027702337, z: 4.0745363e-10}
Rotation: {x: -0.1515771, y: -0.004849017, z: 0.024082867, w: 0.9881401}
Pinky:
Bones:
- Position: {x: -0.035965066, y: 0.1098181, z: -0.011605551}
Rotation: {x: -0.18821092, y: -0.06394386, z: 0.16154061, w: 0.9666398}
- Position: {x: 0.0000000013096724, y: 0.032479797, z: 3.4924597e-10}
Rotation: {x: -0.32946473, y: 0.01707748, z: -0.012672641, w: 0.9439284}
- Position: {x: -0.0000000054133125, y: 0.02165052, z: 6.9849193e-10}
Rotation: {x: -0.17438221, y: -0.008915508, z: 0.014246329, w: 0.9845346}

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: f93c23a67990e6e40a39caf891d72534
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 356a691ec81ea0c44a8a8a0dfeaaf9f3
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant: