Intense Vibration

Intense Vibration is an advanced vibration system for Unity Android.

Unity's access to vibration functionality is limited to how the iPhone vibration function works - a fixed intensity for a fixed amount of time every time.

Android does not share this limitation and can vibrate for any number of milliseconds.

With Intense Vibration you can access the whole Android Vibrator API and use Intense Vibration's variable intensity functionality which offers ten levels of vibration intensity.

The functionality is accessed through a single class (singleton) and basic usage is as simple as:
//Vibrate for 50 milliseconds
IntenseVibration.Instance.Vibrate(50); 

//Vibrate for 200 milliseconds at intensity level 5
IntenseVibration.Instance.Vibrate(200, 5);

Full source code is provided and there are no Java or native libraries to confuse you, making modifications and additions a breeze.

Get it here!

You can find a demo APK here.

No comments:

Post a Comment