2014-12-07 19:09:38 -05:00
|
|
|
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
|
2014-03-14 14:13:41 -04:00
|
|
|
|
|
|
|
|
#include "ComponentVisualizersPrivatePCH.h"
|
|
|
|
|
|
|
|
|
|
#include "RadialForceComponentVisualizer.h"
|
2014-11-12 04:58:53 -05:00
|
|
|
#include "PhysicsEngine/RadialForceComponent.h"
|
2014-03-14 14:13:41 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
void FRadialForceComponentVisualizer::DrawVisualization( const UActorComponent* Component, const FSceneView* View, FPrimitiveDrawInterface* PDI )
|
|
|
|
|
{
|
|
|
|
|
const URadialForceComponent* ForceComp = Cast<const URadialForceComponent>(Component);
|
|
|
|
|
if(ForceComp != NULL)
|
|
|
|
|
{
|
|
|
|
|
FTransform TM = ForceComp->ComponentToWorld;
|
|
|
|
|
TM.RemoveScaling();
|
|
|
|
|
|
|
|
|
|
// Draw light radius
|
|
|
|
|
DrawWireSphereAutoSides(PDI, TM, FColor(200, 255, 255), ForceComp->Radius, SDPG_World);
|
|
|
|
|
}
|
|
|
|
|
}
|