Files
UnrealEngineUWP/Engine/Source/Editor/ComponentVisualizers/Private/SpringArmComponentVisualizer.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

16 lines
618 B
C++

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