Files
UnrealEngineUWP/Engine/Source/Developer/PhysicsUtilities/Private/LevelSetHelpers.h
Alex McAdams 2fc19a1670 Fix unity build
#preflight 63db2d857a39a18021aebd4f
#rb trivial

[CL 23964185 by Alex McAdams in ue5-main branch]
2023-02-01 22:59:55 -05:00

25 lines
829 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreTypes.h"
#include "Templates/UniquePtr.h"
struct FKLevelSetElem;
class UBodySetup;
namespace UE::Geometry
{
class FDynamicMesh3;
}
namespace Chaos
{
class FLevelSet;
}
namespace LevelSetHelpers
{
bool CreateLevelSetForBone(UBodySetup* BodySetup, const TArray<FVector3f>& InVertices, const TArray<uint32>& InIndices, uint32 InResolution);
void CreateDynamicMesh(const TArray<FVector3f>& InVertices, const TArray<uint32>& InIndices, UE::Geometry::FDynamicMesh3& OutMesh);
bool CreateLevelSetForMesh(const UE::Geometry::FDynamicMesh3& InMesh, int32 InLevelSetGridResolution, FKLevelSetElem& OutElement);
bool CreateLevelSetForMesh(const UE::Geometry::FDynamicMesh3& InMesh, int32 InLevelSetGridResolution, TUniquePtr<Chaos::FLevelSet>& OutElement);
}