cancel
Showing results for 
Search instead for 
Did you mean: 

Can't get haptic effect to work in UE4 with touch controllers

DoubleP90
Explorer
I'm trying to get haptic effect to work with my touch controllers in UE4 without any success, I've tried all the methods of haptics and force feedback and nothing.
Any ideas on how to get it to work?
I'm using version 4.14.1 of the engine
23 REPLIES 23

rpalandri
Expert Protege
Hello!
How exactly are you trying to get haptics to work on UE4? Code, or blueprints? If blueprints, could you send us either a testscene (uproject and everything), or at least a screenshot of your haptics system so that we can reproduce?
Thanks a bunch

DoubleP90
Explorer
It's in blueprints,this is how i have it setup right now,
8hrdalbym8g8.jpg
mr72tet5tqek.jpg
but I used all the methods available, from the ones that should work (from the documentation) to the ones that work with the xbox controller.
Including this https://answers.unrealengine.com/questions/473470/play-dynamic-force-feedback-doesnt-work-on-touch-u.html
And this https://developer3.oculus.com/documentation/game-engines/latest/concepts/unreal-input/

I'm using the VR template, also I've tried in other projects and it doesn't work, the blueprint is located in the motionControllerPawn

rpalandri
Expert Protege
This should normally work, according to what I'm seeing. 

Is there any way you can send me a .zip of your project, so that I can try to repro on my side?
Thank you

DoubleP90
Explorer
All I did is create a new VR template project, add the motionController face 2 button, added a haptic curve with the values as above, assigned it to apply the haptic effect like in the screenshot above inside the motion controller pawn. Other than that it's just the default template project.
Tested in 4.14 and 4.13 (installed from the epic launcher)

tonsta31
Heroic Explorer

I managed to get Haptic working, will post how when I get home!


Also try creating a new player controller and add the feedback from there

DoubleP90
Explorer

tonsta31 said:

I managed to get Haptic working, will post how when I get home!


Also try creating a new player controller and add the feedback from there



Oh thank god someone figured it out 😄 please let me know as soon as you can how to do it.
Doesn't work with another player controller either

tonsta31
Heroic Explorer

Hi sorry for the later reply. OK here is how it works for me. btw I am running UE4.14


First thing to do is create a variable with is an enum assigned to "Hands Enum"

In the player controller create a custom event ie RumbleLeft, then from this you want to drag off and use the Set Haptics by Value" node. In this node select frequency and amplitude and also which hand, then add a delay and then stop haptic effect. The delay will determine the length of rumble effect.

That is one way.

Another way (untested) is again create the variable then add to blueprint under get, drag of and play haptic effect . Select your haptic effect and assign to the custom event. then call when needed.


Hope this helped

DoubleP90
Explorer
Doesn't work, the nodes even if triggered do absolutely nothing, using UE4.14 aswell.
I really don't understand why it doesn't work. I've tested it in multiple engine versions and nothing.
It does however work in the Nvidia Funhouse mod version of the engine.

Are you running the 4.14 version from the launcher of the github one?

tonsta31
Heroic Explorer

I use the standard launcher and works 100% everytime when I fire. make sure in your character that you have the motion controllers set as left and right in default settings