Payback 0.0.1
CK Graduation Project
로딩중...
검색중...
일치하는것 없음
CameraMotionBlender.h
이 파일의 문서화 페이지로 가기
1// Fill out your copyright notice in the Description page of Project Settings.
2
3#pragma once
4
5#include "CoreMinimal.h"
6#include "UObject/Object.h"
7#include "CameraMotionBlender.generated.h"
8
9
10UCLASS()
11class CK_UE_API UCameraMotionBlender : public UObject
12{
13 GENERATED_BODY()
14
15public:
16 // 전환 시점에 호출 — 현재값을 From으로 캡쳐하고 n초 블렌딩 시작
17 void BeginBlend(float PosDuration, float RotDuration, float FieldOfViewOffsetDuration, float TimeScaleDuration);
18
19 FVector AdvancePosition(const FVector& Target, float RealDeltaTime);
20 FVector AdvanceRotation(const FVector& Target, float RealDeltaTime);
21 float AdvanceFieldOfViewOffset(float Target, float RealDeltaTime);
22 float AdvanceTimeScale(float Target, float RealDeltaTime);
23
24private:
26 {
27 public:
28 FVectorChannel() = default;
29 FVectorChannel(FVector From, FVector Current, float Duration) : From(From), Current(Current), Duration(Duration) { }
30
31 public:
32 void Begin(float InDuration);
33 FVector Advance(const FVector& Target, float DeltaTime);
34
35 public:
36 FVector From = FVector::ZeroVector;
37 FVector Current = FVector::ZeroVector;
38 float Elapsed = 0.0f;
39 float Duration = 0.0f;
40 };
41
43 {
44 public:
45 FFloatChannel() = default;
46 FFloatChannel(float InFrom, float InCurrent, float InDuration) : From(InFrom), Current(InCurrent), Duration(InDuration) { }
47
48 public:
49 void Begin(float InDuration);
50 float Advance(float Target, float DeltaTime);
51
52 public:
53 float From = 0.0f;
54 float Current = 0.0f;
55 float Elapsed = 0.0f;
56 float Duration = 0.0f;
57 };
58
59private:
63 FFloatChannel TimeScaleChannel = FFloatChannel(1.0f, 1.0f, 0.0f);
64};
Definition CameraMotionBlender.h:12
FVectorChannel PositionChannel
Definition CameraMotionBlender.h:60
FFloatChannel FieldOfViewOffsetChannel
Definition CameraMotionBlender.h:62
FVectorChannel RotationChannel
Definition CameraMotionBlender.h:61
Definition CameraMotionBlender.h:43
FFloatChannel(float InFrom, float InCurrent, float InDuration)
Definition CameraMotionBlender.h:46
Definition CameraMotionBlender.h:26
FVectorChannel(FVector From, FVector Current, float Duration)
Definition CameraMotionBlender.h:29