Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

[Closed] PlayHapticEffect not working on HTC Vive 4.12.5

Hello, After been searching through internet for days I have finally decided to ask for help. I am trying to use haptic effects in HTC vive controller but there is no way to make them work well. I can use the play force feedback effect but I can not achieve the effect I want with them, also when I package my game in shipping it crashes randomly in this function inside CurveBase.cpp: alt text

And this is my call stack: alt text

It works well on the editor but I need it working on a packaged build too.

The PlayHapticEffect never played for me, I tried creating a HapticEffect blueprint on the editor and playing it through the blueprint function but it never works, maybe I am doing something wrong, this is my haptic effect blueprint:

alt text

Any help on this would be appreciated, Thanks :)

Product Version: UE 4.12
crash.jpg (32.9 kB)
callstack.png (59.3 kB)
capturahaptic.jpg (63.3 kB)
more ▼

asked Aug 05 '16 at 05:19 PM in VR

avatar image

211 8 13 20

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

The question has been closed Aug 23 '16 at 12:39 PM by iscaru1988 for the following reason:

The question is answered, right answer was accepted

1 answer: sort voted first

PlayHapticFeedback for the Vive is completely broken as of now and wont work.

What you could do to achieve a similar effect is to do it yourself using PlayDynamicForceFeedback (lets you control the ForceFeedback a bit better than normal PlayForceFeedback), but you wont have any graphical curves but need to code this part yourself.

Cheers, Indy

more ▼

answered Aug 10 '16 at 09:16 AM

avatar image

830 26 15 41

avatar image iscaru1988 Aug 11 '16 at 11:22 AM

Ok, I will try with that function, I've seen it in the player controller. Thanks!

avatar image iscaru1988 Aug 11 '16 at 04:31 PM

I have it working! Finally I ended up creating a UCurveFloat and updating the vibration on the tick function using the PlayDynamicForceFeedback method. It works fine on the packaged build. Thanks for your help!

avatar image indygoof Aug 23 '16 at 11:28 AM

If the answer helped, please consider marking the Question as solved. Thanks :)

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question