Table of Contents

How to Integrate bhaptics SDK into Unity - Daniel

Introduction

This guide contains steps on how to install and integrate the bhaptics tactile vibration SDK into a Unity project using bHaptics developer. This allows sending tactile feedback to bhaptics devices inside a Unity Project. This guide will use bhaptics Tactgloves as an example, however, the steps should work with all bhpatic devices.

Requirements

Install bHaptics Player

Download bHaptics player at the following link: https://www.bhaptics.com/software/player. Once installed, Login and follow setup instructions. Within the player, you can pair your devices as instructed by the manual associated with the bhaptic tool you plan to connect. In the case of Tactgloves, this is done via turning them on and pairing them under the device settings in bhaptics player. Once paired, can test the device by pressing ping. This should send a haptic signal given that pairing worked correctly.

Preparing bHaptics Developer Portal to Sync with Unity

Importing Deployed Events into Unity

This will link your bhaptics template to your unity project. It will show you documentation you can use to develop your haptic effects and how to combine them.

Add bhaptics Objects

  1. Create a new BhapticsManager object (menu: bhaptics > Bhaptics Manager)
  2. Create a new BhapticsReceiver object (menu: bhaptics > Bhaptics Receiver)
  3. Position both objects under a manager object in the hierarchy.

Send Haptic Feedback

To send haptic feedback call:

BhapticsManager.instance.SubmitRegistered(“HapticKey”, position, intensity);

Conclusion

The bhaptics SDK is now integrated into your Unity project. You can send haptic feedback to bhaptics devices by calling the SubmitRegistered() method. Refer to the bhaptics documentation for more advanced usage.