Files
UnrealEngineUWP/Engine/Source/Editor/ComponentVisualizers/Private/SpringArmComponentVisualizer.cpp
Ben Marsh 13d012685f Merging copyright update from 4.19 branch.
#rb none
#rnx
#jira

[CL 3818977 by Ben Marsh in Staging-4.19 branch]
2018-01-02 15:30:26 -05:00

16 lines
618 B
C++

// Copyright 1998-2018 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 );
}
}