돌고래 홈페이지
ID:
PW:


  운영자(2021-09-29 16:21:37, Hit : 1111, Vote : 636
 ue4 math timer tip

Yaw로 각도 구하기
FRotator TargetRot = FRotationMatrix::MakeFromX(ballTargetDir).Rotator();


다시 방향 벡터 구하기
FVector resVec = forwardDir2.RotateAngleAxis(TargetRot.Yaw, FVector::UpVector)

UE4 시간 얻어오기
https://m.blog.naver.com/cpuover/221055768647

시간 예제
https://vimsky.com/examples/detail/cpp-ex---FDateTime---class.html
https://qiita.com/unknown_ds/items/11baa179e7712b2ceea5

FDateTimeStructCustomization::ToDateTimeZoneString
UKismetMathLibrary::UtcNow()
FDateTime::UtcNow


언리얼에서는 QueryPerformanceCounter를 이용하여 구현
float FPlatformTime::Seconds()


chrono timer를 이용한 stop watch class
std::chrono::system_clock::time_point m_start = std::chrono::system_clock::now();
https://blog.naver.com/xtelite/221991670131

#include "Windows/WindowsPlatformTime.h"
double start = FPlatformTime::Seconds();

// put code you want to time here.

double end = FPlatformTime::Seconds();
UE_LOG(LogTemp, Warning, TEXT("code executed in %f seconds."), end-start);




ue4 최적화
unreal engine game tutorial

Copyright 1999-2022 Zeroboard / skin by zero