#include <MainPlayerController.h>
◆ AMainPlayerController()
| AMainPlayerController::AMainPlayerController |
( |
| ) |
|
9{
10 PlayerCameraManagerClass = AGameCameraManager::StaticClass();
11}
◆ BeginPlay()
| void AMainPlayerController::BeginPlay |
( |
| ) |
|
|
overrideprotectedvirtual |
41{
42 Super::BeginPlay();
43}
◆ GetMouseLocation()
| bool AMainPlayerController::GetMouseLocation |
( |
FVector & |
OutLocation | ) |
const |
15{
16 FHitResult HitResult;
17 GetHitResultUnderCursor(ECC_Visibility, false, HitResult);
18
19 if (HitResult.bBlockingHit)
20 {
21 OutLocation = HitResult.ImpactPoint;
22 return true;
23 }
24 else
25 {
26 OutLocation = FVector::ZeroVector;
27 return false;
28 }
29}
◆ PlayerTick()
| void AMainPlayerController::PlayerTick |
( |
float |
DeltaTime | ) |
|
|
overrideprotectedvirtual |
47{
48 Super::PlayerTick(DeltaTime);
49
50
51}
◆ SetTargetFOV()
| void AMainPlayerController::SetTargetFOV |
( |
float |
NewFOV, |
|
|
float |
Speed |
|
) |
| |
33{
37}
float TargetFOV
Definition MainPlayerController.h:32
bool bIsFOVChanging
Definition MainPlayerController.h:34
float FOVChangeSpeed
Definition MainPlayerController.h:33
◆ bIsFOVChanging
| bool AMainPlayerController::bIsFOVChanging = false |
|
private |
◆ FOVChangeSpeed
| float AMainPlayerController::FOVChangeSpeed = 2.0f |
|
private |
◆ TargetFOV
| float AMainPlayerController::TargetFOV = 90.0f |
|
private |
이 클래스에 대한 문서화 페이지는 다음의 파일들로부터 생성되었습니다.: