I’m trying to make my controller rumble, I tried with a Stadia and a PS3 controller but it’s doing nothing…
I’m looking for the solution for several days, even asked to ChatGPT, it told me about activating vibrations in project settings but I can’t find this option so…
My code is below, it is simply setting Gamepad.current to the variable _gamepad, and calling SetMotorSpeeds() with the value of the right trigger (and some GUI debug).
Everything works as expected but the controller does not vibrate oO
Am I the only person having this problem right now?
The problem happens with my two computers, and it doesn’t change anything after building the game and distributing it to other people.
I don’t know, but I’m having a problem where rumble works inconsistently when the frame rate is very high, so I’m curious whether you have a very high frame rate when you’re testing this. I’m going to try putting the SetMotorSpeeds call in FixedUpdate so it runs less often.
Thanks for the post,
Yes, my framerate is around 820 FPS, but because SetMotorSpeeds is called only on the controller event I don’t see how it could be related
(Stadia) The Stadia controller is only supported in the Stadia player at the moment. In the editor, use the generic Gamepad for bindings and use any Xbox or PS4 controller for testing.
Joy-Cons are only supported on Switch.
Sensors in the PS4 controller are currently only supported on PS4.
Note: Only the following combinations of Devices/OSes currently support rumble:
PS4, Xbox, and Switch controllers, when connected to their respective consoles. Only supported if you install console-specific input packages in your Project.
PS4 controllers, when connected to Mac or Windows/UWP computers.
Thanks a lot blingopen,
You’re right, I didn’t check this section out, sorry…
I’m quite surprised that the rumble function is not supported on a lot more controllers