ssid Posted November 2, 2021 Share Posted November 2, 2021 Hi, Is there a haptics API in the latest Wave XR SDK? I remember there being an interface in the older SDK i.e. TriggerHapticPulse but don't see it in the latest one. Or do we need to directly use the Unity XR input device for haptics now? Thanks, Sid Link to comment Share on other sites More sharing options...
Sean Moakes Posted November 3, 2021 Share Posted November 3, 2021 If you install the Vive Input Utility package you can use TriggerHapticPulse or TriggerHapticVibration. Link to comment Share on other sites More sharing options...
Tony PH Lin Posted November 5, 2021 Share Posted November 5, 2021 Hi, In Wave Essence: You can use Wave.Essence; WXRDevice.SendHapticImpulse(device, amplitude, duration); In Unity XR: You can use UnityEngine.XR; <InputDevice>.SendHapticImpulse(0, amplitude, duration); Thanks. Link to comment Share on other sites More sharing options...
ssid Posted November 16, 2021 Author Share Posted November 16, 2021 @Tony PH Lin Thanks. I am currently using <InputDevice>.SendHapticImpulse(0, amplitude, duration); but I have noticed that whatever 'amplitude' I pass, the haptic vibration feels extremely strong on Vive Focus Plus whether the value passed is 0.1 or 1.0. Not sure if this is a bug or related to the device. I can try 'WXRDevice.SendHapticImpulse' as suggested. Does it use something else under the hood (not Unity XR) so it changes the intensity? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now