Navigation
API > API/Runtime > API/Runtime/Chaos > API/Runtime/Chaos/GeometryCollection > API/Runtime/Chaos/GeometryCollection/FGeometryCollectionConvexUtility
References
| Module | Chaos |
| Header | /Engine/Source/Runtime/Experimental/Chaos/Public/GeometryCollection/GeometryCollectionConvexUtility.h |
| Include | #include "GeometryCollection/GeometryCollectionConvexUtility.h" |
| Source | /Engine/Source/Runtime/Experimental/Chaos/Private/GeometryCollection/GeometryCollectionConvexUtility.cpp |
static FGeometryCollectionConvexData CreateNonOverlappingConvexHullData
&40;
FGeometryCollection &42; GeometryCollection,
double FractionAllowRemove,
double SimplificationDistanceThreshold,
double CanExceedFraction,
EConvexOverlapRemoval OverlapRemovalMethod,
double OverlapRemovalShrinkPercent,
UE::GeometryCollectionConvexUtility::FConvexHulls &42; ComputedLeafHullsToModify
&41;
Remarks
Create non-overlapping convex hull data for all transforms in the geometry collection (except transforms where it would be better to just use the hulls of the children)
Parameters
| Name | Description |
|---|---|
| GeometryCollection | The collection to add convex hulls to |
| FractionAllowRemove | The fraction of a convex body we can cut away to remove overlaps with neighbors, before we fall back to using the hulls of the children directly. (Does not affect leaves of hierarchy) |
| SimplificationDistanceThreshold | Approximate minimum distance between vertices, below which we remove vertices to generate a simpler convex shape. If 0.0, no simplification will occur. |
| CanExceedFraction | The fraction by which the convex body volume on a cluster can exceed the volume of the geometry under that cluster (a value of 1 == exceed by 100% == convex hull has 2x the volume of the geometry) |
| OverlapRemovalMethod | If bRemoveOverlaps, control which overlaps are removed |
| OverlapRemovalShrinkPercent | Compute overlaps based on objects shrunk by this percentage, so objects that would not overlap with this value set as their 'Collision Object Reduction Percentage' will not be cut |
| ComputedLeafHullsToModify | Optional pre-computed hulls for geometry of rigid leaves, in the top-level coordinate space of the geometry collection. If passed in, the data will be updated and moved. |