Files
UnrealEngineUWP/Engine/Source/Editor/ComponentVisualizers/Private/RadialForceComponentVisualizer.cpp
bryan sefcik 0837230669 Ran IWYU again on half of the Engine/Source/Editor/... source files.
#jira

[CL 21716414 by bryan sefcik in ue5-main branch]
2022-08-30 23:03:03 -04:00

28 lines
815 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "RadialForceComponentVisualizer.h"
#include "Components/ActorComponent.h"
#include "Engine/EngineTypes.h"
#include "HAL/PlatformCrt.h"
#include "Math/Color.h"
#include "Math/Transform.h"
#include "PhysicsEngine/RadialForceComponent.h"
#include "SceneManagement.h"
#include "Templates/Casts.h"
void FRadialForceComponentVisualizer::DrawVisualization( const UActorComponent* Component, const FSceneView* View, FPrimitiveDrawInterface* PDI )
{
const URadialForceComponent* ForceComp = Cast<const URadialForceComponent>(Component);
if(ForceComp != NULL)
{
FTransform TM = ForceComp->GetComponentTransform();
TM.RemoveScaling();
// Draw light radius
DrawWireSphereAutoSides(PDI, TM, FColor(200, 255, 255), ForceComp->Radius, SDPG_World);
}
}