| UObjectBase
|
Module |
|
Header |
/Engine/Source/Runtime/Engine/Classes/Camera/CameraShakeBase.h |
Include |
#include "Camera/CameraShakeBase.h" |
class UCameraShakeBase : public UObject
A CameraShake is an asset that defines how to shake the camera in a particular way. CameraShakes can be authored as either oscillating shakes, animated shakes, or both.
An oscillating shake will sinusoidally vibrate various camera parameters over time. Each location and rotation axis can be oscillated independently with different parameters to create complex and random-feeling shakes. These are easier to author and tweak, but can still feel mechanical and are limited to vibration-style shakes, such as earthquakes.
Animated shakes play keyframed camera animations. These can take more effort to author, but enable more natural-feeling results and things like directional shakes. For instance, you can have an explosion to the camera's right push it primarily to the left.
Name | Description | ||
---|---|---|---|
|
bSingleInstance |
If true to only allow a single instance of this shake class to play at any given time. |
|
|
float |
ShakeScale |
The overall scale to apply to the shake. Only valid when the shake is active. |
Name | Description | |
---|---|---|
|
UCameraShakeBase ( |
Name | Description | ||
---|---|---|---|
|
ApplyPlaySpace ( |
||
|
ApplyScale ( |
||
|
ApplyScale ( |
||
|
APlayerCamer ... |
GetCameraManager() |
Gets the current camera manager. Will be null if the shake isn't active. |
|
GetCameraShakeBlendTimes ( |
Gets the default blend in/out durations for camera shakes of the given class. |
|
|
GetCameraShakeBlendTimes ( |
Gets the duration of this camera shake's blend in and out. |
|
|
FCameraShake ... |
GetCameraShakeDuration() |
Gets the duration of this camera shake in seconds. |
|
GetCameraShakeDuration ( |
Gets the default duration for camera shakes of the given class. |
|
|
ECameraShake ... |
GetPlaySpace() |
Returns the current play space. The value is irrelevant if the shake isn't active. |
|
GetShakeInfo ( |
Gets some infromation about this specific camera shake |
|
|
const FMatri ... |
GetUserPlaySpaceMatrix() |
Returns the current play space matrix. |
|
IsFinished() |
Returns whether this camera shake is finished |
|
|
SetUserPlaySpaceMatrix ( |
Sets the current play space matrix. |
|
|
StartShake ( |
Starts this camera shake with the given parameters |
|
|
StopShake ( |
Stops this camera shake |
|
|
TeardownShake() |
Tears down this camera shake before destruction or recycling |
|
|
UpdateAndApplyCameraShake ( |
Updates this camera shake and applies its effect to the given view |