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 TimeScaleDuration, float TrackingSpeedDuration);
18
19 float AdvanceTimeScale(float Target, float RealDeltaTime);
20 float AdvanceTrackingSpeed(float Target, float RealDeltaTime);
21
22private:
24 {
25 public:
26 FFloatChannel() = default;
27
28 FFloatChannel(float InFrom, float InCurrent, float InDuration) : From(InFrom), Current(InCurrent), Duration(InDuration) { }
29
30 public:
31 void Begin(float InDuration);
32 float Advance(float Target, float DeltaTime);
33
34 public:
35 float From = 0.0f;
36 float Current = 0.0f;
37 float Elapsed = 0.0f;
38 float Duration = 0.0f;
39 };
40
41private:
42 FFloatChannel TimeScaleChannel = FFloatChannel(1.0f, 1.0f, 0.0f);
43 FFloatChannel TrackingSpeedChannel = FFloatChannel(1.0f, 1.0f, 0.0f);
44};
Definition CameraMotionBlender.h:12
Definition CameraMotionBlender.h:24
FFloatChannel(float InFrom, float InCurrent, float InDuration)
Definition CameraMotionBlender.h:28