Files
UnrealEngineUWP/Engine/Source/Editor/ComponentVisualizers/Private/RadialForceComponentVisualizer.cpp
ben marsh 2b46ba7b94 Update copyright notices to 2019.
#rb none
#lockdown Nick.Penwarden

#ROBOMERGE-OWNER: ryan.gerleve
#ROBOMERGE-AUTHOR: ben.marsh
#ROBOMERGE-SOURCE: CL 4662404 in //UE4/Main/...
#ROBOMERGE-BOT: ENGINE (Main -> Dev-Networking)

[CL 4662413 by ben marsh in Dev-Networking branch]
2018-12-14 13:44:01 -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);
}
}