IDecomposeMeshToHullsAsync::DecomposeMeshToHullsAsyncBegin

Utility for turning arbitrary mesh into convex hulls.

Unreal Engine C++ API Reference > Developer > PhysicsUtilities > IDecomposeMeshToHullsAsync

References

   
Module PhysicsUtilities
Header /Engine/Source/Developer/PhysicsUtilities/Public/ConvexDecompTool.h
Include #include "ConvexDecompTool.h"
bool DecomposeMeshToHullsAsyncBegin
(
    [UBodySetup](API\Runtime\Engine\PhysicsEngine\UBodySetup) * InBodySetup,
    [TArray](API\Runtime\Core\Containers\TArray)< FVector3f > && InVertices,
    [TArray](API\Runtime\Core\Containers\TArray)< uint32 > && InIndices,
    uint32 InHullCount,
    int32 InMaxHullVerts,
    uint32 InResolution
)

Remarks

Utility for turning arbitrary mesh into convex hulls. This can be called multiple times for multiple UBodySetup results and they will be done processed in sequential order InBodySetup BodySetup that will have its existing hulls removed and replaced with results of decomposition.

Parameters

Name Description
InVertices Array of vertex positions of input mesh, whose ownership is transferred to the async task
InIndices Array of triangle indices for input mesh, whose ownership is transferred to the async task
InAccuracy Value between 0 and 1, controls how accurate hull generation is
InMaxHullVerts Number of verts allowed in a hull

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library