Module |
|
Header |
/Engine/Source/Editor/UnrealEd/Public/ImportUtils/StaticMeshImportUtils.h |
Include |
#include "ImportUtils/StaticMeshImportUtils.h" |
Source |
/Engine/Source/Editor/UnrealEd/Private/ImportUtils/StaticMeshImportUtils.cpp |
namespace StaticMeshImportUtils
{
bool StaticMeshImportUtils::AddSphereGeomFromVerts
(
const TArray< FVector > & Verts,
FKAggregateGeom * AggGeom,
const TCHAR * ObjName
)
}
Function for adding a sphere collision primitive to the supplied collision geometry based on a set of Verts.
Simply put an AABB around mesh and use that to generate center and radius. It checks that the AABB is square, and that all vertices are either at the center, or within 5% of the radius distance away.
Function for adding a sphere collision primitive to the supplied collision geometry based on a set of Verts.
Simply put an AABB around mesh and use that to generate centre and radius. It checks that the AABB is square, and that all vertices are either at the centre, or within 5% of the radius distance away.