This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bool IsInFrustum(AActor* Actor) | |
{ | |
ULocalPlayer* LocalPlayer = Actor->GetWorld()->GetFirstLocalPlayerFromController(); | |
if (LocalPlayer != nullptr && LocalPlayer->ViewportClient != nullptr && LocalPlayer->ViewportClient->Viewport) | |
{ | |
FSceneViewFamilyContext ViewFamily(FSceneViewFamily::ConstructionValues( | |
LocalPlayer->ViewportClient->Viewport, | |
Actor->GetWorld()->Scene, | |
LocalPlayer->ViewportClient->EngineShowFlags) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bool GetActorPosInScreenSpace(const APlayerController* Player, const AActor& Actor, FVector2D& OutScreenPos) | |
{ | |
FVector WorldPosition = Actor->GetActorLocation(); | |
ULocalPlayer* const LP = Player ? Player->GetLocalPlayer() : nullptr; | |
if (LP && LP->ViewportClient) | |
{ | |
// get the projection data | |
FSceneViewProjectionData ProjectionData; | |
if (LP->GetProjectionData(LP->ViewportClient->Viewport, eSSP_FULL, /*out*/ ProjectionData)) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FCircularSector::FCircularSector() {} | |
FCircularSector::FCircularSector(const FVector& Center, float YawAngle, float ConeHalfAngle, float Near, float Far) | |
: m_Center(Center), m_Yaw(YawAngle), m_HalfAngle(ConeHalfAngle), m_Near(Near), m_Far(Far) | |
{ | |
} | |
bool FCircularSector::Contains(const FVector& Location) const | |
{ | |
return CheckToContain(m_Near, m_Far, Location - m_Center, m_HalfAngle, m_Yaw); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Get-ChildItem c:\wooyeongc-dev\Plugins\Mercuna -Recurse -Force | | |
ForEach-Object -Process { | |
p4 reopen -c default "$($PSItem.FullName)" | |
} |
OlderNewer