KLingo Project Documentation 1.0.0
Unreal Engine 5.6 C++ Project Documentation
로딩중...
검색중...
일치하는것 없음
FParabolaGeometricTrack 구조체 참조

정점 높이를 지정해 기하학적 포물선을 계산하는 트랙. 더 자세히 ...

#include <UParabolaComponent.h>

+ FParabolaGeometricTrack에 대한 협력 다이어그램:

Public 멤버 함수

FORCEINLINE void Advance (float DeltaTime)
 지정한 델타만큼 시간을 진행한다.
 
void ApplyArcSolution (const FVector &InStart, const FVector &InTarget, const float InApexHeight, float t, const FVector &InUpAxis=FVector::UpVector)
 시작/도착점과 정점 높이로 트랙 파라미터를 초기화한다.
 
FORCEINLINE FVector EvaluateAtAlpha (const AActor *Owner, float Alpha) const
 알파값 기반 위치를 계산한다.
 
FORCEINLINE FVector EvaluateAtCurrent (const AActor *Owner) const
 현재 시간 기준 위치를 계산한다.
 
FVector EvaluateAtTime (const AActor *, float TimeSec) const
 시간값을 받아 포물선 위치를 계산한다.
 
FORCEINLINE float GetAlpha () const
 현재 경과 시간의 알파를 반환한다.
 
 UPROPERTY (EditAnywhere, BlueprintReadWrite) FVector Start
 

상세한 설명

정점 높이를 지정해 기하학적 포물선을 계산하는 트랙.

UParabolaComponent.h 파일의 117 번째 라인에서 정의되었습니다.

멤버 함수 문서화

◆ Advance()

FORCEINLINE void FParabolaGeometricTrack::Advance ( float  DeltaTime)
inline

지정한 델타만큼 시간을 진행한다.

UParabolaComponent.h 파일의 141 번째 라인에서 정의되었습니다.

142 {
143 CurrentTime = FMath::Min(CurrentTime + FMath::Max(0.f, DeltaTime), FMath::Max(0.001f, Duration));
144 }

◆ ApplyArcSolution()

void FParabolaGeometricTrack::ApplyArcSolution ( const FVector &  InStart,
const FVector &  InTarget,
const float  InApexHeight,
float  t,
const FVector &  InUpAxis = FVector::UpVector 
)
inline

시작/도착점과 정점 높이로 트랙 파라미터를 초기화한다.

UParabolaComponent.h 파일의 170 번째 라인에서 정의되었습니다.

171 {
172 Start = InStart;
173 Target = InTarget;
174 ApexHeight = FMath::Max(0.f, InApexHeight);
175 UpAxis = InUpAxis;
176 Duration = FMath::Max(0.001f, t);
177 ResetTime();
178 }

◆ EvaluateAtAlpha()

FORCEINLINE FVector FParabolaGeometricTrack::EvaluateAtAlpha ( const AActor *  Owner,
float  Alpha 
) const
inline

알파값 기반 위치를 계산한다.

UParabolaComponent.h 파일의 158 번째 라인에서 정의되었습니다.

159 {
160 return EvaluateAtTime(Owner, Alpha * FMath::Max(0.001f, Duration));
161 }
FVector EvaluateAtTime(const AActor *, float TimeSec) const
시간값을 받아 포물선 위치를 계산한다.

◆ EvaluateAtCurrent()

FORCEINLINE FVector FParabolaGeometricTrack::EvaluateAtCurrent ( const AActor *  Owner) const
inline

현재 시간 기준 위치를 계산한다.

UParabolaComponent.h 파일의 164 번째 라인에서 정의되었습니다.

165 {
166 return EvaluateAtTime(Owner, CurrentTime);
167 }

◆ EvaluateAtTime()

FVector FParabolaGeometricTrack::EvaluateAtTime ( const AActor *  ,
float  TimeSec 
) const
inline

시간값을 받아 포물선 위치를 계산한다.

UParabolaComponent.h 파일의 148 번째 라인에서 정의되었습니다.

149 {
150 const float D = FMath::Max(0.001f, Duration);
151 const float t = FMath::Clamp(TimeSec, 0.f, D);
152 const float a = t / D;
153
154 return FMathHelper::InterpArcSin(Start, Target, ApexHeight, a);
155 }
static FVector InterpArcSin(const FVector &Start, const FVector &End, float Height, float Alpha)
선형 보간 경로에 사인 함수를 더해 아치 형태의 곡선을 생성합니다.
Definition FMathHelper.h:52

다음을 참조함 : FMathHelper::InterpArcSin().

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

◆ GetAlpha()

FORCEINLINE float FParabolaGeometricTrack::GetAlpha ( ) const
inline

현재 경과 시간의 알파를 반환한다.

UParabolaComponent.h 파일의 139 번째 라인에서 정의되었습니다.

139{ return FMath::Clamp(CurrentTime / FMath::Max(0.001f, Duration), 0.f, 1.f); }

◆ UPROPERTY()

FParabolaGeometricTrack::UPROPERTY ( EditAnywhere  ,
BlueprintReadWrite   
)
inline

UParabolaComponent.h 파일의 122 번째 라인에서 정의되었습니다.

137 { CurrentTime = 0.f; }

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