Getting Started(Unity) - bhaptics/haptic-library GitHub Wiki
30 minutes Application Guide
1. Download bHaptics player and connect the gears (5min)
2. Download and import SDK (5min)
3. Add [bHaptics] Prefab (5min)
Add the [bHaptics] Prefab to your scene.
[bHaptics] is located in Assets/Bhaptics/SDK/Prefabs
4. Add HapticSource (5min)
- Add TactSource to the GameObject in the inspector
- Then select the HapticClip you want to use.
- You can test HapticClip files in the inspector. (in Assets/Bhaptics/HapticPatterns )
- You can find over 200 different haptic feedback files/patterns here.
Or
you can make your own pattern using bHaptics designer.
Designer https://designer.bhaptics.com
Tutorial for designer https://youtu.be/Pyq9GHdchzc
ONE LINE OF CODE
(10min)
5. Apply to your script by adding GetComponent<HapticSource>().Play();