Forum Discussion
Inpu
11 years agoProtege
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 !
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
- InpuProtegeSo, I'm the only one having this issue ? Am I that stupid ? :P
- vrdavebOculus StaffWe 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.
- InpuProtegeDamn, 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
- cyberealityGrand ChampionAwesome. Thanks, vrdaveb.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device