performconstantrumble - eisclimber/ExPresS-XR GitHub Wiki
Method in RumbleUtility
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)| 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. |