StaticMeshImportUtils::AddSphereGeomFromVerts

Function for adding a sphere collision primitive to the supplied collision geometry based on a set of Verts.

Windows
MacOS
Linux

References

Module

UnrealEd

Header

/Engine/Source/Editor/UnrealEd/Public/ImportUtils/StaticMeshImportUtils.h

Include

#include "ImportUtils/StaticMeshImportUtils.h"

Source

/Engine/Source/Editor/UnrealEd/Private/ImportUtils/StaticMeshImportUtils.cpp

Syntax

namespace StaticMeshImportUtils
{
    bool StaticMeshImportUtils::AddSphereGeomFromVerts
    (
        const TArray< FVector > & Verts,
        FKAggregateGeom * AggGeom,
        const TCHAR * ObjName
    )
}

Remarks

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.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss