I need a better feedback in my game for mobile version, but I didn't found a way to make the phone vibrate using vanilla Godot.
There is currently a module for Android: https://github.com/literaldumb/GodotVibrate
I think something that simple should be included in the engine.
it could be insteresting to support it on PC too since some gamepad have a rumble motor too.
@SuperUserNameMan thanks for reminding me.
I have experimental gamepad rumble code sitting on my harddisk for several months now... need(ed) some motivation to finish it ^^
I found a post about a vibration API, apparently it doesn't work on PS4 controllers https://godotengine.org/qa/15898/ps4-controller-vibration-not-working (does it mean vibration was implemented at some point?)
Yeah, vibration for gamepads was added but not for phones
Hi, I've seen that in version 3.0 has not included part of the vibration in both desktop, platform and mobile games. I do not know why since other engines do have them and apart it does not allow to generate the kinesthetic in the games and that can ruin a correct immersion of the player
Vibration is an important part of modern games. All game engines and frameworks have the ability to control vibration. So why can not this Godot?
Vibration is an important part of modern games. All game engines and frameworks have the ability to control vibration. So why can not this Godot?
Because no contributor implemented it so far :)
Sounds like @VitaZheltyakov volunteered to implement it. ^.^
_/me would like this functionality as well_
+1 for making it work! It'd be great for mobile games!
@OvermindDL1 , I can not implement this functionality, because I do not know Java.
@VitaZheltyakov Good thing Java is one of the most well documented languages of any language out (it needed it...). ^.^
Honestly though, I'd do this (I'd do a lot) if I had the time, but I do not... :-(
I think I can do that for mobile (Android at least). My question is, is it supposed to be called using the function start_joy_vibration
as stated in #21870 or we need to expose a new function just for mobile (as we can have a gamepad attached to a mobile device also)?
EDIT: I'll try do write a module with the Vibration.vibrate function and see how it works.
Unity support phone vibration.
UE support phone vibration.
Construct support phone vibration.
Phaser support phone vibration.
Cocos2d support phone vibration.
Game Maker support phone vibration.
Corona support phone vibration.
Behold support phone vibration.
Godot not support phone vibration.
Maybe it's time to add this feature to the engine?
@VitaZheltyakov we are waiting for your PR then ;)
@VitaZheltyakov is right. The only Godot that does not have phone vibration support
Godot is an open-source project. So I think if any of us really need it, we can implement it and then make a PR
I create a vibration module for android for godot 3.1. Want to know if its a still needed feature
@Michael-Jalloh So far, it seems to be a desired feature. It'd make sense to have this in core, without requiring a third-party module. Still, feel free to link to your module here :slightly_smiling_face:
Will clean it up and try and create a readme for it. The upload it to github
Android vibrate module for godot 3.1, any bugs lemme know
https://github.com/Michael-Jalloh/Vibrate
You must add this module to the main assembly as a module Google IAP
Will try and make a PR this week or next
it's about time to close this pretty long waited issue. :smile:
hang on till merged.
Most helpful comment
Android vibrate module for godot 3.1, any bugs lemme know
https://github.com/Michael-Jalloh/Vibrate