2016-01-07 08:17:16 -05:00
|
|
|
// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved.
|
2014-03-14 14:13:41 -04:00
|
|
|
|
|
|
|
|
#include "ComponentVisualizersPrivatePCH.h"
|
|
|
|
|
#include "SpringArmComponentVisualizer.h"
|
2014-11-12 04:58:53 -05:00
|
|
|
#include "GameFramework/SpringArmComponent.h"
|
2014-03-14 14:13:41 -04:00
|
|
|
|
|
|
|
|
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 );
|
|
|
|
|
}
|
|
|
|
|
}
|