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,28 @@
using HurricaneVR.Framework.Core;
namespace HurricaneVR.Framework.Components
{
public class HVRGrabbableImpactHaptics : HVRImpactHapticsBase
{
public HVRGrabbable Grabbable;
protected override void Awake()
{
base.Awake();
if (!Grabbable) TryGetComponent(out Grabbable);
}
protected override void Vibrate(float duration, float amplitude, float frequency)
{
for (var i = 0; i < Grabbable.HandGrabbers.Count; i++)
{
var h = Grabbable.HandGrabbers[i];
if (!h.IsMine) break;
h.Controller.Vibrate(amplitude, Data.Duration, Data.Frequency);
}
}
}
}