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

#include <GA_Base.h>

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

Public 멤버 함수

 UGA_Base ()
 

Protected 멤버 함수

bool GetCursorData (FVector &TargetPos, FRotator &TargetRot) const
 
void MotionWarpTargetToCursor (FName WarpTargetName=FName("Target"))
 
void RotateCharacterToCursor ()
 

생성자 & 소멸자 문서화

◆ UGA_Base()

UGA_Base::UGA_Base ( )
12{
13 InstancingPolicy = EGameplayAbilityInstancingPolicy::InstancedPerActor;
14}

멤버 함수 문서화

◆ GetCursorData()

bool UGA_Base::GetCursorData ( FVector &  TargetPos,
FRotator &  TargetRot 
) const
protected
17{
18 const FGameplayAbilityActorInfo* ActorInfo = GetCurrentActorInfo();
19 ensure(ActorInfo);
20
21 if (ACK_PlayerController* PC = Cast<ACK_PlayerController>(ActorInfo->PlayerController.Get()))
22 {
23 if (PC->GetMouseLocation(TargetPos))
24 {
25 if (AActor* AvatarActor = ActorInfo->AvatarActor.Get())
26 {
27 FVector LookVector = TargetPos - AvatarActor->GetActorLocation();
28 LookVector.Z = 0.0f;
29 TargetRot = LookVector.Rotation();
30
31 return true;
32 }
33 }
34 }
35
36 return false;
37}
Definition CK_PlayerController.h:16
이 함수를 호출하는 함수들에 대한 그래프입니다.:

◆ MotionWarpTargetToCursor()

void UGA_Base::MotionWarpTargetToCursor ( FName  WarpTargetName = FName("Target"))
protected
40{
41 FVector TargetPos;
42 FRotator TargetRot;
43
44 if (!GetCursorData(TargetPos, TargetRot))
45 {
46 return;
47 }
48
49 if (ACK_CharacterPlayer* Character = Cast<ACK_CharacterPlayer>(GetAvatarActorFromActorInfo()))
50 {
51 if (UMotionWarpingComponent* MWComp = Character->GetMotionWarpingComponent())
52 {
53 MWComp->AddOrUpdateWarpTargetFromLocationAndRotation(WarpTargetName, TargetPos, TargetRot);
54 }
55 }
56}
Definition CK_CharacterPlayer.h:20
bool GetCursorData(FVector &TargetPos, FRotator &TargetRot) const
Definition GA_Base.cpp:16
이 함수 내부에서 호출하는 함수들에 대한 그래프입니다.:
이 함수를 호출하는 함수들에 대한 그래프입니다.:

◆ RotateCharacterToCursor()

void UGA_Base::RotateCharacterToCursor ( )
protected
59{
60 FVector TargetPos;
61 FRotator TargetRot;
62
63 if (!GetCursorData(TargetPos, TargetRot))
64 {
65 return;
66 }
67
68 if (AActor* Avatar = GetAvatarActorFromActorInfo())
69 {
70 Avatar->SetActorRotation(TargetRot);
71 }
72}
이 함수 내부에서 호출하는 함수들에 대한 그래프입니다.:
이 함수를 호출하는 함수들에 대한 그래프입니다.:

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