I’m trying to add haptic feedback to my VR game and I’ve stumbled upon a problem with feedback duration. Regardless of how I set up my haptic feedback curve, the controller always vibrates for about 2s. What’s strange - the current VR template has an effect which last for a fraction of a second (pistol fire), but when I copied it to my project, the duration still changes to the same 2s. Does anyone know what to do to have the feedback last as long as the curve?
Howdy Pete_the_B, thank you for posting.
After you copied the feedback curve, did you extend the end part of the curve?
I took a look at the documentation and found that in a ForceFeedback Effect, you can adjust the value and the time of haptic feedback. Here is the image of my example.
Additionally, here is the documentation. I have tested this in 5.0.
I hope this helps you in you project.
Example:
No, I didn’t extend the curve - it’s exactly as it is in the VR template:
Yet, for some reason, the duration is always the same.
I also found a similar issue in the VR template - sometimes the haptic effect doesn’t stop.
For anyone wondering, this bug seems to be related to Valve Index and haptic feedback with OpenXR - #24 by jimsnomis
1 Like