Payback 0.0.1
CK Graduation Project
로딩중...
검색중...
일치하는것 없음
FCameraSequenceMotionState 구조체 참조

#include <CameraSequenceEvaluation.h>

FCameraSequenceMotionState에 대한 협력 다이어그램:
Collaboration graph

Public 멤버 함수

void Apply (FMinimalViewInfo &View, const TArray< TWeakObjectPtr< ACinematicCameraEffector > > &Effectors, float DeltaSeconds)
 
FORCEINLINE void Reset ()
 

Private 속성

FVector Location = FVector::ZeroVector
 
FQuat Rotation = FQuat::Identity
 
bool bInitialized = false
 

상세한 설명

CineCameraActor의 기본 시점에 추적 속도와 이동/회전 정지를 적용한다. 효과 Offset은 이후에 합성한다.

멤버 함수 문서화

◆ Apply()

void FCameraSequenceMotionState::Apply ( FMinimalViewInfo &  View,
const TArray< TWeakObjectPtr< ACinematicCameraEffector > > &  Effectors,
float  DeltaSeconds 
)
150{
151 float TrackingSpeed = 1.0f;
152 bool bStopMovement = false;
153 bool bStopRotation = false;
154
155 for (const TWeakObjectPtr<ACinematicCameraEffector>& Effector : Effectors)
156 {
157 if (Effector.IsValid())
158 {
159 TrackingSpeed *= Effector->TrackingSpeedMultiplier;
160 bStopMovement |= Effector->bStopMovement;
161 bStopRotation |= Effector->bStopRotation;
162 }
163 }
164
165 if (bInitialized == false)
166 {
167 Location = View.Location;
168 Rotation = View.Rotation.Quaternion();
169 bInitialized = true;
170 }
171
172 // 기본값 1은 작성된 키를 그대로 사용하고, 1 미만에서는 목표 시점 추적을 늦춘다.
173 const float Alpha = TrackingSpeed >= 1.0f ? 1.0f : FMath::Clamp(DeltaSeconds * TrackingSpeed / 0.1f, 0.0f, 1.0f);
174
175 if (bStopMovement == false)
176 {
177 Location = FMath::Lerp(Location, View.Location, Alpha);
178 }
179
180 if (bStopRotation == false)
181 {
182 Rotation = FQuat::Slerp(Rotation, View.Rotation.Quaternion(), Alpha);
183 }
184
185 View.Location = Location;
186 View.Rotation = Rotation.Rotator();
187}
FQuat Rotation
Definition CameraSequenceEvaluation.h:42
bool bInitialized
Definition CameraSequenceEvaluation.h:43
FVector Location
Definition CameraSequenceEvaluation.h:41

다음을 참조함 : bInitialized, Location, Rotation.

다음에 의해서 참조됨 : ACinematicCameraEffector::ApplyCameraMotion(), UCameraSequencePlayback::Evaluate().

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

◆ Reset()

FORCEINLINE void FCameraSequenceMotionState::Reset ( )
inline
36 {
37 bInitialized = false;
38 }

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

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

멤버 데이터 문서화

◆ bInitialized

bool FCameraSequenceMotionState::bInitialized = false
private

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

◆ Location

FVector FCameraSequenceMotionState::Location = FVector::ZeroVector
private

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

◆ Rotation

FQuat FCameraSequenceMotionState::Rotation = FQuat::Identity
private

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


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