OVRInput.SetControllerVibration not working properly
Asked Answered
O

1

0

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 :slight_smile:

Oriflamme answered 27/6 at 13:40 Comment(0)
P
0

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.

Photothermic answered 27/6 at 13:40 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.