Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/GameFramework > API/Runtime/Engine/GameFramework/APlayerController
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 |
void SetHapticsByValue
&40;
const float Frequency,
const float Amplitude,
EControllerHand Hand
&41;
Remarks
Sets the value of the haptics for the specified hand directly, using frequency and amplitude. NOTE: If a curve is already playing for this hand, it will be cancelled in favour of the specified values.
Parameters
| Name | 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 |