- Home /
OVRInput.SetControllerVibration not working properly
Hi, i'm currently working on a VR tool and i'm trying to implement haptic feedback. I want the controller to vibrate depending on the "force" used to press on an item.
In the update i do the following:
Debug.Log(pressForce);
OVRInput.SetControllerVibration(1, pressForce, OVRInput.Controller.RTouch);
The Debug.Log correctly returns a value between 0 and 1, but the controller does not vibrate, and there's no error in the console. I'm using touch for rift s controllers.
Thank you for any help :)
Answer by powerLED · Sep 19, 2021 at 01:42 PM
Hi, I had the same problem too. I just figured it out. You don't need to use OVRInput.SetControllerVibration method. In the scene, there are two XRController component in your left and right hand. You need the trigger method that inside of XRController component, called "SendHapticImpulse". Sorry for my english. I hope it would be helpful for you.