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.

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback