Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
Inpu's avatar
Inpu
Protege
11 years ago

Oculus utilities and Xbox controller vibration

Hello,

I'm trying to understand how to add vibration using the OVRInput.SetControllerVibration() method (https://developer.oculus.com/doc/0.8.0. ... bdd79c26e9)

If I run the following command : OVRInput.SetControllerVibration(1f, 1f);, my controller start vibrating and won't stop (not even after I stop the Unity scene !, I have to re-start the scene on Unity to make it stop).

I've tried OVRInput.SetControllerVibration(0f, 0f);, but it doesn't seems to stop the vibration as well. Am I missing something ?

Thanks !

4 Replies

Replies have been turned off for this discussion
  • So, I'm the only one having this issue ? Am I that stupid ? :P
  • We haven't been able to reproduce this yet. Are you calling SetControllerVibration every frame? The theory is that the runtime may be getting backlogged with the requests. For now, you could try only calling SetControllerVibration when the value you want actually changes. There's no need to repeatedly call it with the same values.
  • Damn, good catch, that was it, I was trying to trigger a vibration using an Input, but I used the "InputDown" function, so It was called several time, thanks a lot ! :D