2019-12-26 15:33:43 -05:00
|
|
|
// Copyright Epic Games, Inc. All Rights Reserved.
|
2016-07-05 14:25:57 -04:00
|
|
|
|
|
|
|
|
#include "PhysicalAnimationComponentVisualizer.h"
|
2016-11-23 15:48:37 -05:00
|
|
|
|
2022-08-30 23:03:03 -04:00
|
|
|
#include "Components/ActorComponent.h"
|
2016-07-05 14:25:57 -04:00
|
|
|
#include "PhysicsEngine/PhysicalAnimationComponent.h"
|
2022-08-30 23:03:03 -04:00
|
|
|
#include "Templates/Casts.h"
|
2016-07-05 14:25:57 -04:00
|
|
|
|
|
|
|
|
void FPhysicsAnimationComponentVisualizer::DrawVisualization( const UActorComponent* Component, const FSceneView* View, FPrimitiveDrawInterface* PDI )
|
|
|
|
|
{
|
|
|
|
|
if(const UPhysicalAnimationComponent* PhysAnimComp = Cast<const UPhysicalAnimationComponent>(Component))
|
|
|
|
|
{
|
|
|
|
|
PhysAnimComp->DebugDraw(PDI);
|
|
|
|
|
}
|
|
|
|
|
}
|