Files
UnrealEngineUWP/Engine/Source/Editor/ComponentVisualizers/Private/RadialForceComponentVisualizer.cpp
Ben Marsh 7598af0532 Update copyright notices to 2019.
#rb none
#lockdown Nick.Penwarden

[CL 4662404 by Ben Marsh in Main branch]
2018-12-14 13:41:00 -05:00

21 lines
643 B
C++

// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
#include "RadialForceComponentVisualizer.h"
#include "SceneManagement.h"
#include "PhysicsEngine/RadialForceComponent.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);
}
}