본문 바로가기
Unreal

[Unreal] Location

by leejiwoo21 2025. 2. 20.

액터의 위치이동과 관련된 메소드들을 소개한다.

 

GetOwner -> GetActorLocation() : 컴포넌트를 가지고 있는 액터의 location을 FVector 형태로 반환한다.

 

FVector::Distance( Vector1, Vector2 ) : 두 백터 사이의 거리를 부동소수 형태로 반환한다.

 

FMath:VInterpConstantTo(CurrentLocation, TargetLocation, DeltaTime, Speed) : 물체를 이동할 때, 다음 프레임에서의 위치를 계산할 때 사용한다.

 

GetOwner -> SetActorLocation(FVector) : 액터를 입력받은 좌표로 이동시킨다.

 

반응형

'Unreal' 카테고리의 다른 글

[Unreal] 프레임  (0) 2025.02.24
[Unreal] 언리얼 리플렉션  (0) 2025.02.24
[Unreal] 포인터 역참조 & , (->) 연산자  (0) 2025.02.19
[Unreal] GetOwner()  (0) 2025.02.18
[Unreal] VScode include 오류  (0) 2025.02.16

댓글