ViveInputUtility-Unity icon indicating copy to clipboard operation
ViveInputUtility-Unity copied to clipboard

Trouble with Vive 2.0 Haptic

Open SujAtGithubBuzz opened this issue 6 years ago • 1 comments

In the new Input system of vive 2.0 , i couldnt get the haptic working. I have used the hapticAction.Execute() to trigger haptic but no help. Any reference or suggestions regarding this will be very helpfull. Please note i want the haptic to happen on certain condition, not on trigger press.

SujAtGithubBuzz avatar Mar 08 '19 11:03 SujAtGithubBuzz

@SujAtGithubBuzz You can try using the following code to fulfill your haptic action. Before using below haptic action, you will need to install VIU and SteamVR 2.0 plugin.

ushort hapticValue = 500; ViveInput.TriggerHapticPulse(HandRole, hapticValue);

Let me know if you have more questions, thanks!

chengnay avatar Mar 11 '19 07:03 chengnay