Files
UnrealEngineUWP/Engine/Source/Editor/ComponentVisualizers/Private/RadialForceComponentVisualizer.cpp
Ryan Vance 7c51ff94af Merging //UE4/Dev-Main to Dev-VR (//UE4/Dev-VR)
CL 1 of 8
#rb integration

[CL 4748712 by Ryan Vance in Dev-VR branch]
2019-01-17 18:54:05 -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);
}
}