Files
UnrealEngineUWP/Engine/Source/Editor/ComponentVisualizers/Private/SpringArmComponentVisualizer.cpp
Mikolaj Sieluzycki 51f5333986 Prepare cpp files for header cleanup.
#codereview Robert.Manuszewski

[CL 2356864 by Mikolaj Sieluzycki in Main branch]
2014-11-12 04:58:53 -05:00

16 lines
633 B
C++

// Copyright 1998-2014 Epic Games, Inc. All Rights Reserved.
#include "ComponentVisualizersPrivatePCH.h"
#include "SpringArmComponentVisualizer.h"
#include "GameFramework/SpringArmComponent.h"
static const FColor ArmColor(255,0,0);
void FSpringArmComponentVisualizer::DrawVisualization(const UActorComponent* Component, const FSceneView* View, FPrimitiveDrawInterface* PDI)
{
if (const USpringArmComponent* SpringArm = Cast<const USpringArmComponent>(Component))
{
PDI->DrawLine( SpringArm->GetComponentLocation(), SpringArm->GetSocketTransform(TEXT("SpringEndpoint"),RTS_World).GetTranslation(), ArmColor, SDPG_World );
}
}