Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/APlayerCameraManager
Description
Static. Plays an in-world camera shake that affects all nearby players, with radial distance-based attenuation.
| Name | PlayWorldCameraShake |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Camera/PlayerCameraManager.h |
| Include Path | #include "Camera/PlayerCameraManager.h" |
| Source | /Engine/Source/Runtime/Engine/Private/PlayerCameraManager.cpp |
static void PlayWorldCameraShake
(
UWorld * InWorld,
TSubclassOf < UCameraShakeBase > Shake,
FVector Epicenter,
float InnerRadius,
float OuterRadius,
float Falloff,
bool bOrientShakeTowardsEpicenter
)
Parameters
| Name | Remarks |
|---|---|
| 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. |