Hi guys,
I’ve banged my head against walls whilst trying to create a dynamic force feedback in c++.
I tried the following:
void ABrawlingPlayerController::Tick(float DeltaSeconds)
{
Super::Tick(DeltaSeconds);
ProcessForceFeedbackAndHaptics(DeltaSeconds, false);
PlayDynamicForceFeedback(1.f, -1, true, true, true, true, EDynamicForceFeedbackAction::Update, actionInfo);
}
void ABrawlingPlayerController::ToggleMenu()
{
PlayDynamicForceFeedback(1.f, -1, true, true, true, true, EDynamicForceFeedbackAction::Start, actionInfo);
}
without any effect. Still I do get things working with blueprints (also with the ClientForceFeedback in blueprints):
http://puu.sh/m4E4E/49f9faf9f3.png
However I want this to be done in C++. I reckon it has something to do with the action info which is at the moment just defined in my .h as
FLatentActionInfo actionInfo;
While doing research I just found this [thread][2] where the guy ended up writing his own method for it. I assume it must be actually pretty easy to get this working, I’m just missing something.
As always thanks for you help
Theo