Files
UnrealEngineUWP/Engine/Plugins/Experimental/PhysicsControl/Source/PhysicsControlVisualizer/Private/PhysicsControlComponentVisualizer.cpp
danny chapman 5f7a50daca Add Physics Control Component plugin.
#jira UE-157414
#rb chris.caulfield,cedric.caillaud,benn.gallagher
#preflight 62fe844657316140a8f9659e

[CL 21455241 by danny chapman in ue5-main branch]
2022-08-19 06:20:10 -04:00

17 lines
543 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "PhysicsControlComponentVisualizer.h"
#include "PhysicsControlComponent.h"
//======================================================================================================================
void FPhysicsControlComponentVisualizer::DrawVisualization(
const UActorComponent* Component,
const FSceneView* View,
FPrimitiveDrawInterface* PDI)
{
if (const UPhysicsControlComponent* PCC = Cast<const UPhysicsControlComponent>(Component))
{
PCC->DebugDraw(PDI);
}
}