Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Camera > API/Runtime/Engine/Camera/APlayerCameraManager
References
| Module | Engine |
| 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 < UCameraShakeBase > Shake,
FVector Epicenter,
float InnerRadius,
float OuterRadius,
float Falloff,
bool bOrientShakeTowardsEpicenter
)
Remarks
Static. Plays an in-world camera shake that affects all nearby players, with radial distance-based attenuation.
Parameters
| Name | 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. |