Payback 0.0.1
CK Graduation Project
로딩중...
검색중...
일치하는것 없음
UCameraBehaviorComponent 클래스 참조

#include <CameraBehaviorComponent.h>

UCameraBehaviorComponent에 대한 상속 다이어그램 :
Inheritance graph
UCameraBehaviorComponent에 대한 협력 다이어그램:
Collaboration graph

Public 멤버 함수

 UCameraBehaviorComponent ()
 
virtual void BeginPlay () override
 
virtual void UpdateCameraBehavior (AGameCameraManager *CameraManager, float DeltaTime) override
 
bool IsCameraLockingOn (const AGameCameraManager *CameraManager) const
 
bool IsActivatedCorrection (const UCameraBehaviorComponent *BehaviorComponent, APawn *&OwnerPawn)
 
FRotator CalculateFinalCameraRotation (const AGameCameraManager *CameraManager, float DeltaTime, const FVector &TargetRotationLagSeconds, const FRotator &BaseCameraRotation) const
 
APawn * GetCameraOwnerPawn () const
 
AActor * GetCameraSubjectActor () const
 
UCameraTargetingComponent * GetTargetingComponent () const
 
FVector GetLocalOffset () const
 
void ResetCameraCorrection ()
 
FORCEINLINE bool ShouldApplyCameraCorrection () const
 
FORCEINLINE FVector GetGlobalOffset () const
 
FORCEINLINE FVector GetPivotLagSeconds () const
 
FORCEINLINE FVector GetRotationLagSeconds () const
 
FORCEINLINE FRotator GetSmoothPlayerRotation () const
 
FORCEINLINE FVector2D GetMouseSensitivity () const
 
FORCEINLINE void SetTrackingSpeedMultiplier (const float NewSpeedMultiplier)
 
FORCEINLINE float GetTrackingSpeedMultiplier () const
 

Protected 속성

bool bUseCameraCorrection = true
 
FVector CameraGlobalOffset = FVector(0.0f, 0.0f, 60.0f)
 
FVector CameraLocalOffset = FVector::ZeroVector
 
float CameraMinFOV = 60.0f
 
float CameraMaxFOV = 110.0f
 
float RunFOVOffset = 5.0f
 
float RunFOVBlendSeconds = 0.2f
 
FCameraBehaviorValues CameraBehavior
 

Private 멤버 함수

bool HasSubjectGameplayTag (FGameplayTag Tag) const
 

Private 속성

bool bHasCameraCorrection = false
 
bool bMovementStopped = false
 
bool bRotationStopped = false
 
FVector FrozenPivotLocation = FVector::ZeroVector
 
FVector LastEffectivePivotLocation = FVector::ZeroVector
 
FRotator FrozenCameraRotation = FRotator::ZeroRotator
 
FRotator LastFinalCameraRotation = FRotator::ZeroRotator
 
FRotator PlayerSmoothedRotation = FRotator::ZeroRotator
 
FRotator CamSmoothedRotation = FRotator::ZeroRotator
 
FVector CamSmoothedPivotLocation = FVector::ZeroVector
 
float CurrentTrackingSpeedMultiplier = 1.0f
 
float CurrentRunFOVOffset = 0.0f
 

생성자 & 소멸자 문서화

◆ UCameraBehaviorComponent()

UCameraBehaviorComponent::UCameraBehaviorComponent ( )
19{
20 PrimaryComponentTick.bCanEverTick = false;
21 PrimaryComponentTick.bStartWithTickEnabled = false;
22}

멤버 함수 문서화

◆ BeginPlay()

void UCameraBehaviorComponent::BeginPlay ( )
overridevirtual
26{
27 Super::BeginPlay();
28 SetComponentTickEnabled(false);
29}

◆ CalculateFinalCameraRotation()

FRotator UCameraBehaviorComponent::CalculateFinalCameraRotation ( const AGameCameraManager *  CameraManager,
float  DeltaTime,
const FVector &  TargetRotationLagSeconds,
const FRotator &  BaseCameraRotation 
) const
190{
191 FRotator FinalRotation;
192
193 if (CameraManager->bApplyCameraRotationLag && TargetRotationLagSeconds.SquaredLength() > KINDA_SMALL_NUMBER)
194 {
195 FinalRotation = Math::RInterpToByAxisSeconds(CamSmoothedRotation, BaseCameraRotation, DeltaTime, TargetRotationLagSeconds);
196 }
197 else
198 {
199 FinalRotation = BaseCameraRotation;
200 }
201
202 return FinalRotation;
203}
bool bApplyCameraRotationLag
Definition GameCameraManager.h:206
FRotator CamSmoothedRotation
Definition CameraBehaviorComponent.h:174

다음을 참조함 : AGameCameraManager::bApplyCameraRotationLag, CamSmoothedRotation.

다음에 의해서 참조됨 : UpdateCameraBehavior().

이 함수를 호출하는 함수들에 대한 그래프입니다.:

◆ GetCameraOwnerPawn()

APawn * UCameraBehaviorComponent::GetCameraOwnerPawn ( ) const
207{
208 const AGameCameraManager* CameraManager = Cast<AGameCameraManager>(GetOwner());
209 return CameraManager ? CameraManager->GetCameraSubjectPawn() : Cast<APawn>(GetOwner());
210}
Definition GameCameraManager.h:32
APawn * GetCameraSubjectPawn() const
Definition GameCameraManager.cpp:510

다음을 참조함 : AGameCameraManager::GetCameraSubjectPawn().

다음에 의해서 참조됨 : GetCameraSubjectActor(), IsActivatedCorrection().

이 함수 내부에서 호출하는 함수들에 대한 그래프입니다.:
이 함수를 호출하는 함수들에 대한 그래프입니다.:

◆ GetCameraSubjectActor()

AActor * UCameraBehaviorComponent::GetCameraSubjectActor ( ) const
214{
215 if (APawn* SubjectPawn = GetCameraOwnerPawn())
216 {
217 return SubjectPawn;
218 }
219
220 AActor* OwnerActor = GetOwner();
221
222 if (Cast<AGameCameraManager>(OwnerActor))
223 {
224 return nullptr;
225 }
226 else
227 {
228 return OwnerActor;
229 }
230}
APawn * GetCameraOwnerPawn() const
Definition CameraBehaviorComponent.cpp:206

다음을 참조함 : GetCameraOwnerPawn().

다음에 의해서 참조됨 : GetLocalOffset(), HasSubjectGameplayTag().

이 함수 내부에서 호출하는 함수들에 대한 그래프입니다.:
이 함수를 호출하는 함수들에 대한 그래프입니다.:

◆ GetGlobalOffset()

FORCEINLINE FVector UCameraBehaviorComponent::GetGlobalOffset ( ) const
inline
87 {
88 return CameraGlobalOffset;
89 }
FVector CameraGlobalOffset
Definition CameraBehaviorComponent.h:141

다음에 의해서 참조됨 : UpdateCameraBehavior().

이 함수를 호출하는 함수들에 대한 그래프입니다.:

◆ GetLocalOffset()

FVector UCameraBehaviorComponent::GetLocalOffset ( ) const
241{
242 const AActor* SubjectActor = GetCameraSubjectActor();
243
244 if (SubjectActor == nullptr)
245 {
246 return FVector::ZeroVector;
247 }
248
249 const FRotator SubjectYawRotation(0.0f, SubjectActor->GetActorRotation().Yaw, 0.0f);
250 return SubjectActor->GetActorLocation() + SubjectYawRotation.RotateVector(CameraLocalOffset);
251}
FVector CameraLocalOffset
Definition CameraBehaviorComponent.h:144
AActor * GetCameraSubjectActor() const
Definition CameraBehaviorComponent.cpp:213

다음을 참조함 : CameraLocalOffset, GetCameraSubjectActor().

다음에 의해서 참조됨 : UpdateCameraBehavior().

이 함수 내부에서 호출하는 함수들에 대한 그래프입니다.:
이 함수를 호출하는 함수들에 대한 그래프입니다.:

◆ GetMouseSensitivity()

FORCEINLINE FVector2D UCameraBehaviorComponent::GetMouseSensitivity ( ) const
inline
115 {
117 return FVector2D(UserSettings.MouseXSensitivity, UserSettings.bInvertYAxis ? -UserSettings.MouseYSensitivity : UserSettings.MouseYSensitivity);
118 }
const FGlobalUserSettingsRuntime & GetGlobalUserSettingsRuntime()
Definition GlobalUserSettingsRuntime.cpp:24
Definition GlobalUserSettingsRuntime.h:5
bool bInvertYAxis
Definition GlobalUserSettingsRuntime.h:11
float MouseXSensitivity
Definition GlobalUserSettingsRuntime.h:12
float MouseYSensitivity
Definition GlobalUserSettingsRuntime.h:13

다음을 참조함 : FGlobalUserSettingsRuntime::bInvertYAxis, GetGlobalUserSettingsRuntime(), FGlobalUserSettingsRuntime::MouseXSensitivity, FGlobalUserSettingsRuntime::MouseYSensitivity.

이 함수 내부에서 호출하는 함수들에 대한 그래프입니다.:

◆ GetPivotLagSeconds()

FORCEINLINE FVector UCameraBehaviorComponent::GetPivotLagSeconds ( ) const
inline
94 {
96 }
FCameraBehaviorValues CameraBehavior
Definition CameraBehaviorComponent.h:161
FVector LocationLagSeconds
Definition CameraBehaviorComponent.h:40

다음에 의해서 참조됨 : UpdateCameraBehavior().

이 함수를 호출하는 함수들에 대한 그래프입니다.:

◆ GetRotationLagSeconds()

FORCEINLINE FVector UCameraBehaviorComponent::GetRotationLagSeconds ( ) const
inline
101 {
103 }
FVector RotationLagSeconds
Definition CameraBehaviorComponent.h:43

다음에 의해서 참조됨 : UpdateCameraBehavior().

이 함수를 호출하는 함수들에 대한 그래프입니다.:

◆ GetSmoothPlayerRotation()

FORCEINLINE FRotator UCameraBehaviorComponent::GetSmoothPlayerRotation ( ) const
inline
108 {
110 }
FRotator PlayerSmoothedRotation
Definition CameraBehaviorComponent.h:173

◆ GetTargetingComponent()

UCameraTargetingComponent * UCameraBehaviorComponent::GetTargetingComponent ( ) const
234{
235 const AActor* OwnerActor = GetOwner();
236 return OwnerActor ? OwnerActor->FindComponentByClass<UCameraTargetingComponent>() : nullptr;
237}
Definition CameraTargetingComponent.h:22

◆ GetTrackingSpeedMultiplier()

FORCEINLINE float UCameraBehaviorComponent::GetTrackingSpeedMultiplier ( ) const
inline
128 {
130 }
float CurrentTrackingSpeedMultiplier
Definition CameraBehaviorComponent.h:177

다음에 의해서 참조됨 : UpdateCameraBehavior().

이 함수를 호출하는 함수들에 대한 그래프입니다.:

◆ HasSubjectGameplayTag()

bool UCameraBehaviorComponent::HasSubjectGameplayTag ( FGameplayTag  Tag) const
private
269{
270 AActor* SubjectActor = GetCameraSubjectActor();
271
272 if (SubjectActor == nullptr)
273 {
274 return false;
275 }
276
277 if (const UAbilitySystemComponent* ASC = UAbilitySystemBlueprintLibrary::GetAbilitySystemComponent(SubjectActor))
278 {
279 return ASC->HasMatchingGameplayTag(Tag);
280 }
281 else
282 {
283 return false;
284 }
285}

다음을 참조함 : GetCameraSubjectActor().

이 함수 내부에서 호출하는 함수들에 대한 그래프입니다.:

◆ IsActivatedCorrection()

bool UCameraBehaviorComponent::IsActivatedCorrection ( const UCameraBehaviorComponent *  BehaviorComponent,
APawn *&  OwnerPawn 
)
174{
175 APawn* Owner = GetCameraOwnerPawn();
176 OwnerPawn = Owner;
177
178 if (Owner && BehaviorComponent && BehaviorComponent->ShouldApplyCameraCorrection())
179 {
180 return false;
181 }
182
184 OwnerPawn = Owner;
185 return true;
186}
void ResetCameraCorrection()
Definition CameraBehaviorComponent.cpp:254
FORCEINLINE bool ShouldApplyCameraCorrection() const
Definition CameraBehaviorComponent.h:79

다음을 참조함 : GetCameraOwnerPawn(), ResetCameraCorrection(), ShouldApplyCameraCorrection().

다음에 의해서 참조됨 : UpdateCameraBehavior().

이 함수 내부에서 호출하는 함수들에 대한 그래프입니다.:
이 함수를 호출하는 함수들에 대한 그래프입니다.:

◆ IsCameraLockingOn()

bool UCameraBehaviorComponent::IsCameraLockingOn ( const AGameCameraManager *  CameraManager) const
154{
155 if (CameraManager == nullptr)
156 {
157 return false;
158 }
159
160 const UCameraTargetingComponent* TargetingComponent = CameraManager->GetPlayerTargetingComponent();
161
162 if (TargetingComponent && TargetingComponent->IsTargeting())
163 {
164 return true;
165 }
166 else
167 {
168 return false;
169 }
170}
FORCEINLINE UCameraTargetingComponent * GetPlayerTargetingComponent() const
Definition GameCameraManager.h:107
bool IsTargeting() const
Definition CameraTargetingComponent.cpp:218

다음을 참조함 : AGameCameraManager::GetPlayerTargetingComponent(), UCameraTargetingComponent::IsTargeting().

이 함수 내부에서 호출하는 함수들에 대한 그래프입니다.:

◆ ResetCameraCorrection()

void UCameraBehaviorComponent::ResetCameraCorrection ( )
255{
256 CamSmoothedPivotLocation = FVector::ZeroVector;
257 CamSmoothedRotation = FRotator::ZeroRotator;
258 bHasCameraCorrection = false;
259 bMovementStopped = false;
260 bRotationStopped = false;
261 FrozenPivotLocation = FVector::ZeroVector;
262 LastEffectivePivotLocation = FVector::ZeroVector;
263 FrozenCameraRotation = FRotator::ZeroRotator;
264 LastFinalCameraRotation = FRotator::ZeroRotator;
265}
FVector LastEffectivePivotLocation
Definition CameraBehaviorComponent.h:169
FRotator FrozenCameraRotation
Definition CameraBehaviorComponent.h:170
bool bHasCameraCorrection
Definition CameraBehaviorComponent.h:164
bool bMovementStopped
Definition CameraBehaviorComponent.h:165
FVector FrozenPivotLocation
Definition CameraBehaviorComponent.h:168
FRotator LastFinalCameraRotation
Definition CameraBehaviorComponent.h:171
bool bRotationStopped
Definition CameraBehaviorComponent.h:166
FVector CamSmoothedPivotLocation
Definition CameraBehaviorComponent.h:175

다음을 참조함 : bHasCameraCorrection, bMovementStopped, bRotationStopped, CamSmoothedPivotLocation, CamSmoothedRotation, FrozenCameraRotation, FrozenPivotLocation, LastEffectivePivotLocation, LastFinalCameraRotation.

다음에 의해서 참조됨 : IsActivatedCorrection().

이 함수를 호출하는 함수들에 대한 그래프입니다.:

◆ SetTrackingSpeedMultiplier()

FORCEINLINE void UCameraBehaviorComponent::SetTrackingSpeedMultiplier ( const float  NewSpeedMultiplier)
inline
122 {
123 CurrentTrackingSpeedMultiplier = FMath::Max(NewSpeedMultiplier, 0.0f);
124 }

◆ ShouldApplyCameraCorrection()

FORCEINLINE bool UCameraBehaviorComponent::ShouldApplyCameraCorrection ( ) const
inline
80 {
81 return bUseCameraCorrection && GetCameraSubjectActor() != nullptr;
82 }
bool bUseCameraCorrection
Definition CameraBehaviorComponent.h:137

다음에 의해서 참조됨 : IsActivatedCorrection().

이 함수를 호출하는 함수들에 대한 그래프입니다.:

◆ UpdateCameraBehavior()

void UCameraBehaviorComponent::UpdateCameraBehavior ( AGameCameraManager *  CameraManager,
float  DeltaTime 
)
overridevirtual

ICameraBehaviorInterface를 구현.

33{
34 if (GetWorld() == nullptr)
35 {
36 return;
37 }
38
39 APawn* Owner = nullptr;
40 UCameraBehaviorComponent* BehaviorComponent = CameraManager->GetCameraBehaviorComponent();
41
42 if (IsActivatedCorrection(BehaviorComponent, Owner))
43 {
44 return;
45 }
46
47 FMinimalViewInfo POV = CameraManager->GetCameraCacheView();
48 UCameraZoomComponent* DistanceComponent = CameraManager->GetCameraZoomComponent();
49 POV.Location = Owner->GetActorLocation() - POV.Rotation.Vector() * DistanceComponent->GetCurrentDistance();
50 CameraManager->SetCameraCachePOV(POV);
51
52 const bool bHadCameraCorrection = bHasCameraCorrection;
53 FVector TargetLocalOffset = BehaviorComponent->GetLocalOffset();
54 const FVector TargetGlobalOffset = BehaviorComponent->GetGlobalOffset();
55 const FVector TargetPivotLagSeconds = BehaviorComponent->GetPivotLagSeconds();
56 const FVector TargetRotationLagSeconds = BehaviorComponent->GetRotationLagSeconds();
57 const bool bShouldStopMovement = CameraManager->ShouldStopCameraMovement();
58
59 if (bShouldStopMovement)
60 {
61 FrozenPivotLocation = bMovementStopped ? FrozenPivotLocation : bHadCameraCorrection ? LastEffectivePivotLocation : TargetLocalOffset;
62 TargetLocalOffset = FrozenPivotLocation;
63 }
64
65 bMovementStopped = bShouldStopMovement;
66
67 if (bHasCameraCorrection == false)
68 {
69 CamSmoothedPivotLocation = TargetLocalOffset;
70 CamSmoothedRotation = POV.Rotation;
72 }
73
74 FRotator FinalRotation = CalculateFinalCameraRotation(CameraManager, DeltaTime, TargetRotationLagSeconds, POV.Rotation);
75 const bool bShouldStopRotation = CameraManager->ShouldStopCameraRotation();
76
77 if (bShouldStopRotation)
78 {
79 FrozenCameraRotation = bRotationStopped ? FrozenCameraRotation : bHadCameraCorrection ? LastFinalCameraRotation : FinalRotation;
80 FinalRotation = FrozenCameraRotation;
81 }
82
83 bRotationStopped = bShouldStopRotation;
84
85 const FRotator CameraYawRotation(0.0f, FinalRotation.Yaw, 0.0f);
86 const FQuat CameraYawQuat = CameraYawRotation.Quaternion();
87
88 const FVector UnrotatedCurrentLocation = CameraYawQuat.UnrotateVector(CamSmoothedPivotLocation);
89 const FVector UnrotatedTargetLocation = CameraYawQuat.UnrotateVector(TargetLocalOffset);
90
91 const FVector UnrotatedResult = Math::VInterpToByAxisSeconds
92 (
93 UnrotatedCurrentLocation,
94 UnrotatedTargetLocation,
95 DeltaTime * GetTrackingSpeedMultiplier(),
96 TargetPivotLagSeconds
97 );
98
99 CamSmoothedRotation = FinalRotation;
100 CamSmoothedPivotLocation = CameraYawQuat.RotateVector(UnrotatedResult);
101
102 const float Strength = FMath::Clamp(CameraManager->LocationLagStrength, 0.0f, 1.0f);
103 const FVector EffectivePivotLocation = FMath::Lerp(TargetLocalOffset, CamSmoothedPivotLocation, Strength);
104
105 LastFinalCameraRotation = FinalRotation;
106 LastEffectivePivotLocation = EffectivePivotLocation;
107
108 const FRotationMatrix M(FinalRotation);
109 POV.Rotation = FinalRotation;
110
111 float TargetRunFOVOffset = 0.0f;
112
113 if (const UPlayerMovementComponent* PlayerMovement = Owner->FindComponentByClass<UPlayerMovementComponent>())
114 {
115 TargetRunFOVOffset = RunFOVOffset * PlayerMovement->GetRunSpeedAlpha();
116 }
117
118 if (RunFOVBlendSeconds > 0.0f && RunFOVOffset > 0.0f)
119 {
120 const float FOVChangePerSecond = RunFOVOffset / RunFOVBlendSeconds;
121 CurrentRunFOVOffset = FMath::FInterpConstantTo(CurrentRunFOVOffset, TargetRunFOVOffset, DeltaTime, FOVChangePerSecond);
122 }
123 else
124 {
125 CurrentRunFOVOffset = TargetRunFOVOffset;
126 }
127
128 const float BaseFOV = CameraManager->GetLockedFOV() > 0.0f ? CameraManager->GetFOVAngle() : CameraManager->DefaultFOV;
129 POV.FOV = FMath::Clamp(BaseFOV + CurrentRunFOVOffset, CameraMinFOV, CameraMaxFOV);
130
131 const float TotalDistance = DistanceComponent->GetCurrentDistance() + TargetGlobalOffset.X;
132 POV.Location = EffectivePivotLocation - FinalRotation.Vector() * TotalDistance;
133 POV.Location += M.GetUnitAxis(EAxis::Y) * TargetGlobalOffset.Y;
134 POV.Location += M.GetUnitAxis(EAxis::Z) * TargetGlobalOffset.Z;
135
136 // 이동 입력용으로 따로 지연된 회전
137 const float RotationSpeed = 1.0f / CameraBehavior.PlayerRotationLagSeconds;
138 const FRotator PlayerRotation = FRotator(0.f, FinalRotation.Yaw, 0.f);
139 PlayerSmoothedRotation = FMath::RInterpTo(PlayerSmoothedRotation, PlayerRotation, DeltaTime, RotationSpeed);
140
141 UCameraCollisionComponent* CollisionComp = CameraManager->GetCameraCollisionComponent();
142 CollisionComp->UpdateCameraCollision(EffectivePivotLocation, POV.Location, FinalRotation, Owner);
143
144 if (CollisionComp->IsColliding())
145 {
146 POV.Location = CollisionComp->GetAdjustedCameraLocation();
147 }
148
149 CameraManager->SetCameraCachePOV(POV);
150}
FORCEINLINE UCameraZoomComponent * GetCameraZoomComponent() const
Definition GameCameraManager.h:100
bool ShouldStopCameraMovement() const
Definition GameCameraManager.cpp:536
float LocationLagStrength
Definition GameCameraManager.h:203
bool ShouldStopCameraRotation() const
Definition GameCameraManager.cpp:550
FORCEINLINE UCameraBehaviorComponent * GetCameraBehaviorComponent() const
Definition GameCameraManager.h:114
FORCEINLINE UCameraCollisionComponent * GetCameraCollisionComponent() const
Definition GameCameraManager.h:128
Definition CameraBehaviorComponent.h:52
FORCEINLINE float GetTrackingSpeedMultiplier() const
Definition CameraBehaviorComponent.h:127
FORCEINLINE FVector GetPivotLagSeconds() const
Definition CameraBehaviorComponent.h:93
bool IsActivatedCorrection(const UCameraBehaviorComponent *BehaviorComponent, APawn *&OwnerPawn)
Definition CameraBehaviorComponent.cpp:173
FRotator CalculateFinalCameraRotation(const AGameCameraManager *CameraManager, float DeltaTime, const FVector &TargetRotationLagSeconds, const FRotator &BaseCameraRotation) const
Definition CameraBehaviorComponent.cpp:189
float CurrentRunFOVOffset
Definition CameraBehaviorComponent.h:178
FORCEINLINE FVector GetGlobalOffset() const
Definition CameraBehaviorComponent.h:86
float CameraMinFOV
Definition CameraBehaviorComponent.h:147
float RunFOVBlendSeconds
Definition CameraBehaviorComponent.h:158
float RunFOVOffset
Definition CameraBehaviorComponent.h:154
float CameraMaxFOV
Definition CameraBehaviorComponent.h:150
FVector GetLocalOffset() const
Definition CameraBehaviorComponent.cpp:240
FORCEINLINE FVector GetRotationLagSeconds() const
Definition CameraBehaviorComponent.h:100
Definition CameraCollisionComponent.h:13
void UpdateCameraCollision(FVector Pivot, FVector AdjustedLocation, FRotator Rotation, const AActor *SubjectActor=nullptr)
Definition CameraCollisionComponent.cpp:16
FORCEINLINE bool IsColliding() const
Definition CameraCollisionComponent.h:28
FORCEINLINE FVector GetAdjustedCameraLocation() const
Definition CameraCollisionComponent.h:42
Definition CameraZoomComponent.h:14
FORCEINLINE float GetCurrentDistance() const
Definition CameraZoomComponent.h:69
Definition PlayerMovementComponent.h:11
float PlayerRotationLagSeconds
Definition CameraBehaviorComponent.h:46

다음을 참조함 : bHasCameraCorrection, bMovementStopped, bRotationStopped, CalculateFinalCameraRotation(), CameraBehavior, CameraMaxFOV, CameraMinFOV, CamSmoothedPivotLocation, CamSmoothedRotation, CurrentRunFOVOffset, FrozenCameraRotation, FrozenPivotLocation, UCameraCollisionComponent::GetAdjustedCameraLocation(), AGameCameraManager::GetCameraBehaviorComponent(), AGameCameraManager::GetCameraCollisionComponent(), AGameCameraManager::GetCameraZoomComponent(), UCameraZoomComponent::GetCurrentDistance(), GetGlobalOffset(), GetLocalOffset(), GetPivotLagSeconds(), GetRotationLagSeconds(), GetTrackingSpeedMultiplier(), IsActivatedCorrection(), UCameraCollisionComponent::IsColliding(), LastEffectivePivotLocation, LastFinalCameraRotation, AGameCameraManager::LocationLagStrength, FCameraBehaviorValues::PlayerRotationLagSeconds, PlayerSmoothedRotation, RunFOVBlendSeconds, RunFOVOffset, AGameCameraManager::ShouldStopCameraMovement(), AGameCameraManager::ShouldStopCameraRotation(), UCameraCollisionComponent::UpdateCameraCollision().

이 함수 내부에서 호출하는 함수들에 대한 그래프입니다.:

멤버 데이터 문서화

◆ bHasCameraCorrection

bool UCameraBehaviorComponent::bHasCameraCorrection = false
private

다음에 의해서 참조됨 : ResetCameraCorrection(), UpdateCameraBehavior().

◆ bMovementStopped

bool UCameraBehaviorComponent::bMovementStopped = false
private

다음에 의해서 참조됨 : ResetCameraCorrection(), UpdateCameraBehavior().

◆ bRotationStopped

bool UCameraBehaviorComponent::bRotationStopped = false
private

다음에 의해서 참조됨 : ResetCameraCorrection(), UpdateCameraBehavior().

◆ bUseCameraCorrection

bool UCameraBehaviorComponent::bUseCameraCorrection = true
protected

◆ CameraBehavior

FCameraBehaviorValues UCameraBehaviorComponent::CameraBehavior
protected

다음에 의해서 참조됨 : UpdateCameraBehavior().

◆ CameraGlobalOffset

FVector UCameraBehaviorComponent::CameraGlobalOffset = FVector(0.0f, 0.0f, 60.0f)
protected

◆ CameraLocalOffset

FVector UCameraBehaviorComponent::CameraLocalOffset = FVector::ZeroVector
protected

다음에 의해서 참조됨 : GetLocalOffset().

◆ CameraMaxFOV

float UCameraBehaviorComponent::CameraMaxFOV = 110.0f
protected

다음에 의해서 참조됨 : UpdateCameraBehavior().

◆ CameraMinFOV

float UCameraBehaviorComponent::CameraMinFOV = 60.0f
protected

다음에 의해서 참조됨 : UpdateCameraBehavior().

◆ CamSmoothedPivotLocation

FVector UCameraBehaviorComponent::CamSmoothedPivotLocation = FVector::ZeroVector
private

다음에 의해서 참조됨 : ResetCameraCorrection(), UpdateCameraBehavior().

◆ CamSmoothedRotation

FRotator UCameraBehaviorComponent::CamSmoothedRotation = FRotator::ZeroRotator
private

◆ CurrentRunFOVOffset

float UCameraBehaviorComponent::CurrentRunFOVOffset = 0.0f
private

다음에 의해서 참조됨 : UpdateCameraBehavior().

◆ CurrentTrackingSpeedMultiplier

float UCameraBehaviorComponent::CurrentTrackingSpeedMultiplier = 1.0f
private

◆ FrozenCameraRotation

FRotator UCameraBehaviorComponent::FrozenCameraRotation = FRotator::ZeroRotator
private

다음에 의해서 참조됨 : ResetCameraCorrection(), UpdateCameraBehavior().

◆ FrozenPivotLocation

FVector UCameraBehaviorComponent::FrozenPivotLocation = FVector::ZeroVector
private

다음에 의해서 참조됨 : ResetCameraCorrection(), UpdateCameraBehavior().

◆ LastEffectivePivotLocation

FVector UCameraBehaviorComponent::LastEffectivePivotLocation = FVector::ZeroVector
private

다음에 의해서 참조됨 : ResetCameraCorrection(), UpdateCameraBehavior().

◆ LastFinalCameraRotation

FRotator UCameraBehaviorComponent::LastFinalCameraRotation = FRotator::ZeroRotator
private

다음에 의해서 참조됨 : ResetCameraCorrection(), UpdateCameraBehavior().

◆ PlayerSmoothedRotation

FRotator UCameraBehaviorComponent::PlayerSmoothedRotation = FRotator::ZeroRotator
private

다음에 의해서 참조됨 : UpdateCameraBehavior().

◆ RunFOVBlendSeconds

float UCameraBehaviorComponent::RunFOVBlendSeconds = 0.2f
protected

Idle/Walk와 최대 Run FOV 사이의 전체 구간을 이동하는 시간. 0이면 즉시 반영한다.

다음에 의해서 참조됨 : UpdateCameraBehavior().

◆ RunFOVOffset

float UCameraBehaviorComponent::RunFOVOffset = 5.0f
protected

Run 최고 속도에서 추가되는 FOV 값

다음에 의해서 참조됨 : UpdateCameraBehavior().


이 클래스에 대한 문서화 페이지는 다음의 파일들로부터 생성되었습니다.: