Hello,
I am currently working on a medical simulation scenario in Unity3D (version 2021.3.21) that incorporates haptic feedback using the Touch Haptic Device (Phantom Omni). I am utilizing the OpenHaptics plugin for Unity to achieve this functionality. Although I have successfully connected the haptic device to Unity and can manipulate it within the scene, I have encountered an issue where the feedback does not feel smooth and instead feels jerky when I apply forces to the haptic device.
Currently, the haptic device is represented as a rigid body, and forces are applied using the RigidBody.AddForce() function that runs within the FixedUpdate() method.
I am interested in exploring options to potentially run the haptic code in a separate thread to ensure that it runs at a consistent rate of 1000Hz, thereby providing real-time feedback.
I would greatly appreciate any suggestions or guidance on how to achieve this smoother haptic feedback experience.
Thank you for your assistance.