godot-sdk-integrations / godot-ios-plugins

MIT License
139 stars 54 forks source link

[WIP] Haptic engine plugin for enhance vibration #43

Open feelingsonice opened 1 year ago

feelingsonice commented 1 year ago

The default Input.vibrate_handheld method is generic and don't support granular control over iOS's haptic engine, which support additional parameters like intensity and sharpness.

This allows you to trigger vibration with .vibrate(duration, intensity, sharpness)

There's also additional features like creating dynamic vibrations (Apple doc) I plan to add here, but wanted to create this PR first and see if there's any interest.

TODOs

djrain commented 1 year ago

This sounds great! Would use for sure.

richardvanderdys commented 1 year ago

Is there any way we could get a release with the haptic engine uploaded? I cannot figure out how to compile it on my machine...

AstralTomate commented 7 months ago

I love it! Thank you very much! I was looking 4 days into this and finally got it to work thanks to your pull request! I hope this will be added at some point. If you have issues compiling look into this: https://github.com/godotengine/godot-ios-plugins/issues/47 And maybe this: https://github.com/LettucePie/ios-plugin-integrate-demo?tab=readme-ov-file