Hello, I’m trying to generate vibration with Quest2 controller, but I can’t find proper ways.
pc.Gamepad return size 0 array
navigator.vibrate() only works in mobile(not for vr)
navigator.getGamepads returns array of null(both on web, vr with quest2)
is there any way for this?
Looks like you will ha e to use thia API GamepadHapticActuator - Web APIs | MDN
You should be able to get the gamepad through the input source XrInputSource | PlayCanvas API Reference
Sorry for late reply.
Thanks, it worked.
I can use Gampad API with another vr device. maybe there was some error on my quest2.