LEAP Documentation 40220
Documentation for the LEAP project
AnimNotify_CameraShake.h
Go to the documentation of this file.
1// Copyright Blue Isle Studios Inc 2018. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
6#include "Animation/AnimNotifies/AnimNotify.h"
7#include "AnimNotify_CameraShake.generated.h"
8
9UCLASS()
10class PROJECTX_API UAnimNotify_CameraShake : public UAnimNotify
11{
12 GENERATED_BODY()
13
14public:
15 /* Type of camera shake */
16 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "Camera Shake")
17 TSubclassOf<class UCameraShakeBase> ShakeConfiguration;
18 /* Shake strength multiplier. 1 is normal strength */
19 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "Camera Shake")
20 float ShakeMultiplier = 1.0f;
21 /* Shake strength multiplier when Aiming. 1 is normal strength */
22 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "Camera Shake")
23 float TightAimShakeMultiplier = 1.0f;
24 /* Shake the camera for all players so long as they are within the shake radius*/
25 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "Camera Shake")
26 bool bWorldShake = false;
27 /* Full effect felt if within this radius. Effect depreciates as you move to the outer radius */
28 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "Camera Shake", meta = (EditCondition = "bWorldShake"))
29 float ShakeInnerRadius = 200.0f;
30 /* No shake experienced outside of this radius. Shake depreciates between inner and outer*/
31 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "Camera Shake", meta=(EditCondition="bWorldShake"))
32 float ShakeOuterRadius = 500.0f;
33 /* Bone or socket to create the shake effect from*/
34 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "Camera Shake", meta = (EditCondition = "bWorldShake"))
35 FName ShakeSocket = NAME_None;
36
37 virtual void Notify(class USkeletalMeshComponent* MeshComp, class UAnimSequenceBase* Animation) override;
38};
Definition: AnimNotify_CameraShake.h:11