APlayerController::SetHapticsByValue

Sets the value of the haptics for the specified hand directly, using frequency and amplitude.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/GameFramework/PlayerController.h

Include

#include "GameFramework/PlayerController.h"

Source

/Engine/Source/Runtime/Engine/Private/PlayerController.cpp

Syntax

void SetHapticsByValue
(
    const float Frequency,
    const float Amplitude,
    EControllerHand Hand
)

Remarks

Sets the value of the haptics for the specified hand directly, using frequency and amplitude.

If a curve is already playing for this hand, it will be cancelled in favour of the specified values.

Parameters

Parameter

Description

Frequency

The normalized frequency [0.0, 1.0] to play through the haptics system

Amplitude

The normalized amplitude [0.0, 1.0] to set the haptic feedback to

Hand

Which hand to play the effect on

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss