2019-12-26 14:45:42 -05:00
|
|
|
// Copyright Epic Games, Inc. All Rights Reserved.
|
2018-12-12 11:25:29 -05:00
|
|
|
|
|
|
|
|
#include "GeometryCollection/GeometryCollectionDebugDrawActor.h"
|
2019-08-07 14:56:14 -04:00
|
|
|
|
2022-11-09 20:53:21 -05:00
|
|
|
#include "Chaos/ChaosSolverActor.h"
|
2018-12-12 11:25:29 -05:00
|
|
|
#include "GeometryCollection/GeometryCollection.h"
|
2019-06-08 17:15:34 -04:00
|
|
|
#include "GeometryCollection/GeometryCollectionParticlesData.h"
|
|
|
|
|
#include "GeometryCollection/GeometryCollectionComponent.h"
|
|
|
|
|
#include "GeometryCollection/GeometryCollectionActor.h"
|
2018-12-12 11:25:29 -05:00
|
|
|
|
|
|
|
|
#include "DrawDebugHelpers.h"
|
2019-06-08 17:15:34 -04:00
|
|
|
#include "Debug/DebugDrawService.h"
|
|
|
|
|
#include "Engine/Engine.h"
|
|
|
|
|
#include "Engine/Canvas.h"
|
|
|
|
|
#include "CanvasItem.h"
|
2018-12-12 11:25:29 -05:00
|
|
|
#include "HAL/IConsoleManager.h"
|
2019-06-08 17:15:34 -04:00
|
|
|
#include "EngineUtils.h"
|
|
|
|
|
#include "UObject/ConstructorHelpers.h"
|
|
|
|
|
#include "Components/BillboardComponent.h"
|
|
|
|
|
#include "GenericPlatform/GenericPlatformMath.h"
|
2019-06-26 13:41:32 -04:00
|
|
|
#include "HAL/IConsoleManager.h"
|
2019-06-27 13:29:26 -04:00
|
|
|
#include "PBDRigidsSolver.h"
|
2019-08-02 09:01:58 -04:00
|
|
|
#include "PhysicsSolver.h" // #if TODO_REIMPLEMENT_GET_RIGID_PARTICLES
|
2020-04-08 10:59:25 -04:00
|
|
|
#include "GeometryCollection/GeometryCollectionDebugDrawComponent.h"
|
2019-06-27 13:29:26 -04:00
|
|
|
|
2022-09-24 13:57:58 -04:00
|
|
|
#include UE_INLINE_GENERATED_CPP_BY_NAME(GeometryCollectionDebugDrawActor)
|
|
|
|
|
|
2019-06-08 17:15:34 -04:00
|
|
|
DEFINE_LOG_CATEGORY_STATIC(LogGeometryCollectionDebugDrawActor, Log, All);
|
2018-12-12 11:25:29 -05:00
|
|
|
|
2022-02-02 02:20:31 -05:00
|
|
|
PRAGMA_DISABLE_DEPRECATION_WARNINGS
|
2019-06-26 13:41:32 -04:00
|
|
|
FString FGeometryCollectionDebugDrawActorSelectedRigidBody::GetSolverName() const
|
|
|
|
|
{
|
|
|
|
|
return !Solver ? FName(NAME_None).ToString() : Solver->GetName();
|
2019-06-08 17:15:34 -04:00
|
|
|
}
|
|
|
|
|
|
2018-12-12 11:25:29 -05:00
|
|
|
AGeometryCollectionDebugDrawActor::AGeometryCollectionDebugDrawActor(const FObjectInitializer& ObjectInitializer)
|
|
|
|
|
: Super(ObjectInitializer)
|
|
|
|
|
{
|
2022-02-02 02:20:31 -05:00
|
|
|
PrimaryActorTick.bCanEverTick = false;
|
|
|
|
|
PrimaryActorTick.bTickEvenWhenPaused = false;
|
2019-06-08 17:15:34 -04:00
|
|
|
}
|
2022-09-24 13:57:58 -04:00
|
|
|
PRAGMA_ENABLE_DEPRECATION_WARNINGS
|