Module |
|
Header |
/Engine/Source/Runtime/Engine/Classes/Camera/PlayerCameraManager.h |
Include |
#include "Camera/PlayerCameraManager.h" |
Source |
/Engine/Source/Runtime/Engine/Private/PlayerCameraManager.cpp |
static void PlayWorldCameraShake
(
UWorld * InWorld,
TSubclassOf< UCameraShake > Shake,
FVector Epicenter,
float InnerRadius,
float OuterRadius,
float Falloff,
bool bOrientShakeTowardsEpicenter
)
Plays an in-world camera shake that affects all nearby players, with radial distance-based attenuation.
Parameter |
Description |
---|---|
InWorld |
World context. |
Shake |
Camera shake asset to use. |
Epicenter |
Location to place the effect in world space |
InnerRadius |
Cameras inside this radius get the full intensity shake. |
OuterRadius |
Cameras outside this radius are not affected. |
Falloff |
Exponent that describes the shake intensity falloff curve between InnerRadius and OuterRadius. 1.0 is linear. |
bOrientShakeTowardsEpicenter |
Changes the rotation of shake to point towards epicenter instead of forward. Useful for things like directional hits. |