Navigation
API > API/Developer > API/Developer/PhysicsUtilities
Description
Utility for turning arbitrary mesh into convex hulls. @output InBodySetup BodySetup that will have its existing hulls removed and replaced with results of decomposition.
| Name | DecomposeMeshToHulls |
| Type | function |
| Header File | /Engine/Source/Developer/PhysicsUtilities/Public/ConvexDecompTool.h |
| Include Path | #include "ConvexDecompTool.h" |
| Source | /Engine/Source/Developer/PhysicsUtilities/Private/ConvexDecompTool.cpp |
void DecomposeMeshToHulls
(
UBodySetup * InBodySetup,
const TArray < FVector3f > & InVertices,
const TArray < uint32 > & InIndices,
uint32 InHullCount,
int32 InMaxHullVerts,
uint32 InResolution
)
Parameters
| Name | Remarks |
|---|---|
| InVertices | Array of vertex positions of input mesh |
| InIndices | Array of triangle indices for input mesh |
| InAccuracy | Value between 0 and 1, controls how accurate hull generation is |
| InMaxHullVerts | Number of verts allowed in a hull |