performconstantrumble - eisclimber/ExPresS-XR GitHub Wiki

RumbleUtility.PerformConstantRumble(float,float,HapticImpulsePlayer)

Method in RumbleUtility

Summary

Triggers a constant rumble with the given strength for the given duration on the target (if possible).

public static void PerformConstantRumble(float strength, float duration, HapticImpulsePlayer haptics)

Parameters

Name Description
float strength Strength of the rumble in pct between 0.0f and 1.0f.
float duration Duration of the rumble in seconds.
UnityEngine.XR.Interaction.Toolkit.Inputs.Haptics.HapticImpulsePlayer haptics HapticImpulsePlayer to perform the rumble with.
⚠️ **GitHub.com Fallback** ⚠️