20 lines
713 B
C++
20 lines
713 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "Player/PHYPlayerCameraManager.h"
|
|
|
|
#include UE_INLINE_GENERATED_CPP_BY_NAME(PHYPlayerCameraManager)
|
|
|
|
#include "Player/PHYPlayerController.h"
|
|
|
|
FRotator APHYPlayerCameraManager::GetRotationInput_Implementation() const
|
|
{
|
|
const APHYPlayerController* PHYController = Cast<APHYPlayerController>(PCOwner);
|
|
return PHYController ? PHYController->GetCachedRotationInput() : FRotator::ZeroRotator;
|
|
}
|
|
|
|
FVector APHYPlayerCameraManager::GetMovementControlInput_Implementation() const
|
|
{
|
|
const APHYPlayerController* PHYController = Cast<APHYPlayerController>(PCOwner);
|
|
return PHYController ? PHYController->GetCachedMovementControlInput() : FVector::ZeroVector;
|
|
}
|