APlayerCameraManager::PlayWorldCameraShake

Static.

Windows
MacOS
Linux

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

Syntax

static void PlayWorldCameraShake
(
    UWorld * InWorld,
    TSubclassOf< UCameraShake > Shake,
    FVector Epicenter,
    float InnerRadius,
    float OuterRadius,
    float Falloff,
    bool bOrientShakeTowardsEpicenter
)

Remarks

  1. Plays an in-world camera shake that affects all nearby players, with radial distance-based attenuation.

Parameters

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.

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